@tsed/di
Advanced tools
Comparing version 5.18.1 to 5.18.2
@@ -22,2 +22,5 @@ "use strict"; | ||
} | ||
else { | ||
this.origin = origin; | ||
} | ||
} | ||
@@ -24,0 +27,0 @@ } |
{ | ||
"name": "@tsed/di", | ||
"version": "5.18.1", | ||
"version": "5.18.2", | ||
"description": "DI module for Ts.ED Framework", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"@tsed/core": "5.18.1" | ||
"@tsed/core": "5.18.2" | ||
}, | ||
@@ -28,3 +28,3 @@ "devDependencies": {}, | ||
"license": "MIT", | ||
"gitHead": "3c196dedc27e8dcdc774246577cc023f68471fd5" | ||
"gitHead": "a91a46278a1c344e84309812feb799d0a4bcc661" | ||
} |
@@ -25,2 +25,4 @@ import {isString, nameOf} from "@tsed/core"; | ||
this.origin = origin.origin; | ||
} else { | ||
this.origin = origin; | ||
} | ||
@@ -27,0 +29,0 @@ } |
import {InjectionError} from "../../src/errors/InjectionError"; | ||
describe("InjectionError", () => { | ||
it("should create new instance of InjectionError", () => { | ||
it("should create new instance of InjectionError (1)", () => { | ||
const error = new InjectionError(class Target { | ||
@@ -11,2 +11,10 @@ }, "SERVICE"); | ||
}); | ||
it("should create new instance of InjectionError (2)", () => { | ||
const error = new InjectionError(class Target { | ||
}, new Error("test")); | ||
error.message.should.equal("Injection failed on Target\nOrigin: test"); | ||
error.name.should.equal("INJECTION_ERROR"); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299409
5199