From 35c6405ebe9b96d6a10872ac92c5b856a1ac2db5 Mon Sep 17 00:00:00 2001 From: Konstantin Burov Date: Fri, 6 Sep 2024 09:01:14 +1000 Subject: [PATCH] PR feedback --- src/__tests__/Container.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/__tests__/Container.spec.ts b/src/__tests__/Container.spec.ts index f583096..10523f1 100644 --- a/src/__tests__/Container.spec.ts +++ b/src/__tests__/Container.spec.ts @@ -316,9 +316,7 @@ describe("Container", () => { let value: string = childContainerWithOverride.get("value"); expect(value).toBe("two"); - const partialContainer = new PartialContainer({ - value: Injectable("value", () => "three"), - }); + const partialContainer = new PartialContainer({}).provides(Injectable("value", () => "three")); childContainerWithOverride = parentContainer.provides(partialContainer); value = childContainerWithOverride.get("value"); expect(value).toBe("three");