Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("should attach injector instance to TestContext", () => {
expect(TestContext.injector).to.be.instanceof(InjectorService);
});
it("should reset the injector", () => {
const injectionKey = "key";
TestContext.injector.set(injectionKey, new Provider("something"));
TestContext.reset();
expect((TestContext as any)._injector).eq(null);
});
});
it("should attach injector instance to TestContext", () => {
expect(TestContext.injector).to.eq("Injector");
});