Skip to content

Commit

Permalink
test: fix alphabetized assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Jun 23, 2021
1 parent 51fc9c5 commit 6e7c0ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 10 additions & 0 deletions tap-snapshots/test/update-dependencies.js.test.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/update-dependencies.js TAP deps are alphabetized > should order dep keys 1`] = `
{"dependencies":{"a":"1.0.0","b":"1.0.0","c":"1.0.0","d":"1.0.0"}}
`
12 changes: 2 additions & 10 deletions test/update-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,8 @@ t.test('deps are alphabetized', async t => {
},
},
})
t.strictSame(
result,
{
dependencies: {
a: '1.0.0',
b: '1.0.0',
d: '1.0.0',
c: '1.0.0',
},
},
t.matchSnapshot(
JSON.stringify(result),
'should order dep keys'
)
})
Expand Down

0 comments on commit 6e7c0ea

Please sign in to comment.