From cc4efdd1c9193875ba9ddfb77557e40075ec56f2 Mon Sep 17 00:00:00 2001 From: Dane Walters Date: Wed, 3 Jul 2024 15:20:59 +0800 Subject: [PATCH] fixup! fix: update config imports and scopes file error --- test/jcli/config/project-json_test.ts | 58 --------------------------- 1 file changed, 58 deletions(-) diff --git a/test/jcli/config/project-json_test.ts b/test/jcli/config/project-json_test.ts index cace6f5..ec35b0a 100644 --- a/test/jcli/config/project-json_test.ts +++ b/test/jcli/config/project-json_test.ts @@ -273,64 +273,6 @@ describe("ProjectDotJSON", () => { }); }); }); - // const initialImports = undefined; - // const updatedImports = { "lib": "v2" }; - // const updatedImportsTwo = { "lib": "v2", "src": "./src" }; - - // // replace 从 undefined 到有值 - // const one = build({ imports: initialImports }); - // const another = build({ imports: updatedImports }); - // const diff = one.diff(another); - - // assertObjectMatch(diff!, { - // imports: updatedImports, - // }); - - // // add 从有 lib 到既含有 lib 又含有 src - // const anotherTwo = build({ imports: updatedImportsTwo }); - // const diffTwo = one.diff(anotherTwo); - // assertEquals(diffTwo.imports, updatedImportsTwo); - - // // remove 从既含有 lib 又含有 src 到只有 lib - // const anotherThree = build({ imports: updatedImports }); - // const diffThree = anotherTwo.diff(anotherThree); - // assertEquals(diffThree.imports, updatedImports); - - // //replace 从只有 lib 到 undefined - // const anotherFour = build({ imports: initialImports }); - // const diffFour = anotherThree.diff(anotherFour); - // assertEquals(diffFour.imports, initialImports); - // }); - - // it("diff scopes", () => { - // const initialScopes = undefined; - // const updatedScopes = { "std": { "foo": "foo" } }; - // const updatedScopesTwo = { - // "std": { "foo": "foo" }, - // "dev": { "bar": "bar" }, - // }; - - // // replace 从 undefined 到有值 - // const one = build({ scopes: initialScopes }); - // const another = build({ scopes: updatedScopes }); - // const diff = one.diff(another); - // assertEquals(diff.scopes, updatedScopes); - - // // add 从有 std 到既含有 std 又含有 dev - // const anotherTwo = build({ scopes: updatedScopesTwo }); - // const diffTwo = one.diff(anotherTwo); - // assertEquals(diffTwo.scopes, updatedScopesTwo); - - // // remove 从既含有 std 又含有 dev 到只有 std - // const anotherThree = build({ scopes: updatedScopes }); - // const diffThree = anotherTwo.diff(anotherThree); - // assertEquals(diffThree.scopes, updatedScopes); - - // // replace 从只有 std 到 undefined - // const anotherFour = build({ scopes: initialScopes }); - // const diffFour = anotherThree.diff(anotherFour); - // assertEquals(diffFour.scopes, initialScopes); - // }); describe("Differences in imports", () => { it("should identify a replace update from undefined to defined values", () => {