Skip to content

Commit

Permalink
test(code-gen-types): update expectation for module migration
Browse files Browse the repository at this point in the history
  • Loading branch information
overbit committed May 1, 2024
1 parent c3e1666 commit 6e2721c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("ModuleMap", () => {
await moduleMap.set(newModule);

expect(logger.warn).toHaveBeenCalledWith(
"Module path already exists. Overwriting..."
"File path already exists. Overwriting..."
);
expect(moduleMap.get("path")).toBe(newModule);
});
Expand All @@ -85,7 +85,7 @@ describe("ModuleMap", () => {

moduleMap.replace(oldModule, newModule);

expect(moduleMap.get("path1")).toBeUndefined();
expect(moduleMap.get("path1")).toBeNull();
expect(moduleMap.get("path2")).toBe(newModule);
});

Expand Down Expand Up @@ -125,7 +125,7 @@ describe("ModuleMap", () => {

moduleMap.removeMany(["path1"]);

expect(moduleMap.get("path1")).toBeUndefined();
expect(moduleMap.get("path1")).toBeNull();
});

test("modules should return an array of modules", () => {
Expand Down

0 comments on commit 6e2721c

Please sign in to comment.