Debian Codegraph @

tap-snapshots/test/lib/commands/diff.js.test.cjs

raw
1 /* IMPORTANT
2 * This snapshot file is auto-generated, but designed for humans.
3 * It should be checked into source control and tracked carefully.
4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5 * Make sure to inspect the output below. Do not ignore changes!
6 */
7 'use strict'
8 exports[`test/lib/commands/diff.js TAP no args in a project dir > must match snapshot 1`] = `
9 diff --git a/a.js b/a.js
10 index v0.1.0..v1.0.0 100644
11 --- a/a.js
12 +++ b/a.js
13 @@ -1,1 +1,1 @@
14 -const a = "[email protected]"
15 +const a = "[email protected]"
16 diff --git a/b.js b/b.js
17 index v0.1.0..v1.0.0 100644
18 --- a/b.js
19 +++ b/b.js
20 @@ -1,1 +1,1 @@
21 -const b = "[email protected]"
22 +const b = "[email protected]"
23 diff --git a/index.js b/index.js
24 index v0.1.0..v1.0.0 100644
25 --- a/index.js
26 +++ b/index.js
27 @@ -1,1 +1,1 @@
28 -const version = "0.1.0"
29 +const version = "1.0.0"
30 diff --git a/package.json b/package.json
31 index v0.1.0..v1.0.0 100644
32 --- a/package.json
33 +++ b/package.json
34 @@ -1,4 +1,4 @@
35 {
36 "name": "@npmcli/foo",
37 - "version": "0.1.0"
38 + "version": "1.0.0"
39 }
40 `
41
42 exports[`test/lib/commands/diff.js TAP single arg version, filtering by files > must match snapshot 1`] = `
43 diff --git a/a.js b/a.js
44 index v0.1.0..v1.0.0 100644
45 --- a/a.js
46 +++ b/a.js
47 @@ -1,1 +1,1 @@
48 -const a = "[email protected]"
49 +const a = "[email protected]"
50 diff --git a/b.js b/b.js
51 index v0.1.0..v1.0.0 100644
52 --- a/b.js
53 +++ b/b.js
54 @@ -1,1 +1,1 @@
55 -const b = "[email protected]"
56 +const b = "[email protected]"
57 `
58
59 exports[`test/lib/commands/diff.js TAP various options using --name-only option > must match snapshot 1`] = `
60 index.js
61 package.json
62 `
63
64 exports[`test/lib/commands/diff.js TAP various options using diff option > must match snapshot 1`] = `
65 diff --git a/index.js b/index.js
66 index v2.0.0..v3.0.0 100644
67 --- a/index.js
68 +++ b/index.js
69 @@ -18,7 +18,7 @@
70 17
71 18
72 19
73 -202.0.0
74 +203.0.0
75 21
76 22
77 23
78 diff --git a/package.json b/package.json
79 index v2.0.0..v3.0.0 100644
80 --- a/package.json
81 +++ b/package.json
82 @@ -1,4 +1,4 @@
83 {
84 "name": "bar",
85 - "version": "2.0.0"
86 + "version": "3.0.0"
87 }
88 `