Skip to content

Commit 54cdf3a

Browse files
greenkeeper[bot]RyanZim
authored andcommitted
Update ava to the latest version πŸš€ (#255)
* chore(package): update ava to version 1.0.1 * t.ifError() -> t.falsy()
1 parent 488e4e7 commit 54cdf3a

File tree

14 files changed

+18
-18
lines changed

14 files changed

+18
-18
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"yargs": "^12.0.1"
3333
},
3434
"devDependencies": {
35-
"ava": "^0.25.0",
35+
"ava": "^1.0.1",
3636
"coveralls": "^3.0.0",
3737
"eslint": "^5.0.0",
3838
"eslint-config-problems": "2.0.0",

β€Žtest/base.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('--base --dir works', async t => {
1717
'--no-map'
1818
])
1919

20-
t.ifError(error, stderr)
20+
t.falsy(error, stderr)
2121

2222
t.is(
2323
await read(path.join(dir, 'level-1/level-2/a.css')),

β€Žtest/cli.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test('works with defaults', async t => {
1414
'--no-map'
1515
])
1616

17-
t.ifError(error, stderr)
17+
t.falsy(error, stderr)
1818

1919
t.is(await read(output), await read('test/fixtures/a.css'))
2020
})

β€Žtest/config.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('supports common config', async t => {
2020
dir
2121
)
2222

23-
t.ifError(error, stderr)
23+
t.falsy(error, stderr)
2424

2525
t.is(
2626
await read(path.join(dir, 'output.css')),
@@ -38,7 +38,7 @@ test("doesn't error on empty config", async t => {
3838
dir
3939
)
4040

41-
t.ifError(error, stderr)
41+
t.falsy(error, stderr)
4242

4343
t.is(
4444
await read(path.join(dir, 'output.css')),

β€Žtest/dir.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('--dir works', async t => {
1616
'--no-map'
1717
])
1818

19-
t.ifError(error, stderr)
19+
t.falsy(error, stderr)
2020

2121
t.is(await read(path.join(dir, 'a.css')), await read('test/fixtures/a.css'))
2222

β€Žtest/ext.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test('--ext works', async t => {
1818
'--ext',
1919
'.css'
2020
])
21-
t.ifError(error, stderr)
21+
t.falsy(error, stderr)
2222

2323
t.truthy(await fs.pathExists(path.join(dir, 'a.css')))
2424
})

β€Žtest/glob.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('works with glob patterns', async t => {
1515
'--no-map'
1616
])
1717

18-
t.ifError(error, stderr)
18+
t.falsy(error, stderr)
1919

2020
t.is(
2121
await read(path.join(output, 'a.css')),

β€Žtest/map.jsβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('inline maps are generated by default', async t => {
1616
output
1717
])
1818

19-
t.ifError(error, stderr)
19+
t.falsy(error, stderr)
2020

2121
t.regex(await read(output), /\/*# sourceMappingURL=/)
2222
})
@@ -33,7 +33,7 @@ test('--map generates external sourcemaps', async t => {
3333
'--map'
3434
])
3535

36-
t.ifError(error, stderr)
36+
t.falsy(error, stderr)
3737

3838
t.truthy(await fs.pathExists(output.replace('.css', '.css.map')))
3939
})
@@ -49,7 +49,7 @@ test('--no-map disables internal sourcemaps', async t => {
4949
output,
5050
'--no-map'
5151
])
52-
t.ifError(error, stderr)
52+
t.falsy(error, stderr)
5353

5454
t.notRegex(await read(output), /\/*# sourceMappingURL=/)
5555
})

β€Žtest/misc.jsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ import cli from './helpers/cli.js'
55
test('--help', async t => {
66
const help = await cli(['--help'])
77

8-
t.ifError(help.error)
8+
t.falsy(help.error)
99

1010
t.truthy(help.stdout.length > 10, 'expected --help to output a help message')
1111
})
1212

1313
test('--version', async t => {
1414
const version = await cli(['--version'])
1515

16-
t.ifError(version.error)
16+
t.falsy(version.error)
1717

1818
t.truthy(
1919
version.stdout.length > 10,

β€Žtest/parser.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('--parser works', async t => {
1616
'--no-map'
1717
])
1818

19-
t.ifError(error, stderr)
19+
t.falsy(error, stderr)
2020

2121
t.is(await read(output), await read('test/fixtures/s.css'))
2222
})

0 commit comments

Comments
Β (0)