Skip to content

Commit 6e7c0ea

Browse files
committed
test: fix alphabetized assertion
1 parent 51fc9c5 commit 6e7c0ea

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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/update-dependencies.js TAP deps are alphabetized > should order dep keys 1`] = `
9+
{"dependencies":{"a":"1.0.0","b":"1.0.0","c":"1.0.0","d":"1.0.0"}}
10+
`

test/update-dependencies.js

+2-10
Original file line numberDiff line numberDiff line change
@@ -250,16 +250,8 @@ t.test('deps are alphabetized', async t => {
250250
},
251251
},
252252
})
253-
t.strictSame(
254-
result,
255-
{
256-
dependencies: {
257-
a: '1.0.0',
258-
b: '1.0.0',
259-
d: '1.0.0',
260-
c: '1.0.0',
261-
},
262-
},
253+
t.matchSnapshot(
254+
JSON.stringify(result),
263255
'should order dep keys'
264256
)
265257
})

0 commit comments

Comments
 (0)