Skip to content

Commit

Permalink
fixup! fix: update config imports and scopes file error
Browse files Browse the repository at this point in the history
  • Loading branch information
danewalters committed Jul 3, 2024
1 parent 88d31a0 commit cc4efdd
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions test/jcli/config/project-json_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down

0 comments on commit cc4efdd

Please sign in to comment.