Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Mar 28, 2024
1 parent c820f32 commit f825783
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
12 changes: 6 additions & 6 deletions src/replace_extension_toml_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ test("updateVersion", () => {
let raw = `
[assembly]
version = "0.0.1"
path = "extensions/assembly"
submodule = "extensions/assembly"
[beancount]
path = "extensions/beancount"
submodule = "extensions/beancount"
version = "0.0.1"
`;

expect(updateVersion(raw, "beancount", "0.1.2")).toEqual(`
[assembly]
version = "0.0.1"
path = "extensions/assembly"
submodule = "extensions/assembly"
[beancount]
path = "extensions/beancount"
submodule = "extensions/beancount"
version = "0.1.2"
`);

expect(updateVersion(raw, "assembly", "test")).toEqual(`
[assembly]
version = "test"
path = "extensions/assembly"
submodule = "extensions/assembly"
[beancount]
path = "extensions/beancount"
submodule = "extensions/beancount"
version = "0.0.1"
`);
});

0 comments on commit f825783

Please sign in to comment.