Skip to content

Commit 41bd940

Browse files
authored
Update test for failing build (#121)
1 parent a1492f4 commit 41bd940

File tree

4 files changed

+75
-55
lines changed

4 files changed

+75
-55
lines changed

cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ if (argv.verbose >= 1) {
8787
b[1] = parseInt(b[1], 10)
8888
return b
8989
})
90-
.sort(function (a, b) { return (a[0] !== b[0]) ? a[0] > b[0] : a[1] > b[1] })
90+
.sort((a, b) => b[1] - a[1])
9191
.map(function (b) { return b.join(' ') })
9292
.join(', ')
9393
console.log('[doiuse] Browsers: ' + browsers)

package-lock.json

+71-51
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/anandthakker/doiuse",
2828
"dependencies": {
29-
"browserslist": "^4.1.1",
29+
"browserslist": "^4.14.5",
3030
"caniuse-lite": "^1.0.30000887",
3131
"css-rule-stream": "^1.1.0",
3232
"duplexer2": "0.0.2",
@@ -41,7 +41,7 @@
4141
"devDependencies": {
4242
"babel-cli": "^6.26.0",
4343
"eslint": "^5.6.0",
44-
"mock-fs": "^4.7.0",
44+
"mock-fs": "^4.13.0",
4545
"postcss-import": "^12.0.0",
4646
"standard": "^12.0.1",
4747
"tape": "^4.9.1"

test/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ test('--json option should work', function (t) {
7575

7676
test('--list-only should work', function (t) {
7777
exec(commands.doiuse + '--list-only', function (error, stdout, stderr) {
78-
t.equal(stdout.trim(), '[doiuse] Browsers: IE 8, IE 9, IE 10, IE 11')
78+
t.equal(stdout.trim(), '[doiuse] Browsers: IE 11, IE 10, IE 9, IE 8')
7979
t.end(error)
8080
})
8181
})

0 commit comments

Comments
 (0)