Skip to content

Commit 5f8cccc

Browse files
committed
chore(tests): clean snapshot for lib/view.js tests
Closes #1623 PR-URL: #3483 Credit: @wraithgar Close: #3483 Reviewed-by: @isaacs
1 parent d2e298f commit 5f8cccc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tap-snapshots/test/lib/view.js.test.cjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ dist
8282
dist-tags:
8383
latest: 1.0.0
8484
85-
published [33ma year ago[39m
85+
published {TIME} ago[39m
8686
`
8787

8888
exports[`test/lib/view.js TAP should log info of package in current working dir specific version > must match snapshot 1`] = `
@@ -99,7 +99,7 @@ dist
9999
dist-tags:
100100
latest: 1.0.0
101101
102-
published [33ma year ago[39m
102+
published {TIME} ago[39m
103103
`
104104

105105
exports[`test/lib/view.js TAP should log package info package from git > must match snapshot 1`] = `
@@ -302,7 +302,7 @@ dist
302302
dist-tags:
303303
latest: 1.0.0
304304
305-
published [33ma year ago[39m
305+
published {TIME} ago[39m
306306
`
307307

308308
exports[`test/lib/view.js TAP workspaces all workspaces --json > must match snapshot 1`] = `

test/lib/view.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const t = require('tap')
22

3+
t.cleanSnapshot = str => str.replace(/published .*? ago/g, 'published {TIME} ago')
4+
35
// run the same as tap does when running directly with node
46
process.stdout.columns = undefined
57

0 commit comments

Comments
 (0)