Skip to content

Commit

Permalink
Sort snapshot files for consistent ordering
Browse files Browse the repository at this point in the history
Prompted by discussion in istanbuljs/nyc#1075 (comment)
  • Loading branch information
isaacs committed Apr 22, 2019
1 parent 775e854 commit 8942639
Show file tree
Hide file tree
Showing 6 changed files with 2,216 additions and 2,216 deletions.
2 changes: 1 addition & 1 deletion lib/snapshot.js
Expand Up @@ -67,7 +67,7 @@ class Snapshot {
' * Re-generate by setting TAP_SNAPSHOT=1 and running tests.\n' +
' * Make sure to inspect the output below. Do not ignore changes!\n' +
' */\n\'use strict\'\n' + (
Object.keys(this.snapshot).map(s =>
Object.keys(this.snapshot).sort().map(s =>
`exports[\`${
escape(s)
}\`] = \`\n${
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

0 comments on commit 8942639

Please sign in to comment.