Skip to content

Commit

Permalink
test: fix snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Oct 30, 2023
1 parent 01ef96a commit 559060f
Show file tree
Hide file tree
Showing 8 changed files with 331 additions and 398 deletions.
1 change: 1 addition & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 18 additions & 18 deletions lib/__snapshots__/git_test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
export const snapshot = {};

snapshot[`commitAll() > no grouping 1`] = `
FileSystemFake(2) [Map] {
"file:///home/shun/molt/test/fixtures/direct-import/lib.ts" => 'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
"file:///home/shun/molt/test/fixtures/direct-import/mod.ts" => 'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
[
'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
import { createGraph } from "https://deno.land/x/deno_graph@0.59.1/mod.ts";
import { emojify } from "npm:node-emoji@2.1.0";
import { noop } from "./lib.ts";
',
}
'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
]
`;

snapshot[`commitAll() > group by dependency name 1`] = `
FileSystemFake(2) [Map] {
"file:///home/shun/molt/test/fixtures/direct-import/lib.ts" => 'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
"file:///home/shun/molt/test/fixtures/direct-import/mod.ts" => 'import { VERSION } from "https://deno.land/std@0.200.0/version.ts";
[
'import { VERSION } from "https://deno.land/std@0.200.0/version.ts";
import { createGraph } from "https://deno.land/x/deno_graph@0.50.0/mod.ts";
import { emojify } from "npm:node-emoji@2.1.0";
import { noop } from "./lib.ts";
',
}
'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
]
`;

snapshot[`commitAll() > group by module (file) name 1`] = `
FileSystemFake(2) [Map] {
"file:///home/shun/molt/test/fixtures/direct-import/lib.ts" => 'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
"file:///home/shun/molt/test/fixtures/direct-import/mod.ts" => 'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
[
'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
import { createGraph } from "https://deno.land/x/deno_graph@0.59.1/mod.ts";
import { emojify } from "npm:node-emoji@2.1.0";
import { noop } from "./lib.ts";
',
}
'import { VERSION } from "https://deno.land/std@0.204.0/version.ts";
export const noop = () => {};
',
]
`;
Loading

0 comments on commit 559060f

Please sign in to comment.