Skip to content

Commit

Permalink
upgrade to latest AVA
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 7, 2016
1 parent f343326 commit 8bfaec5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ test.cb('main', t => {
test('--json', async t => {
const {stdout} = await execa('./cli.js', ['--json']);
const x = JSON.parse(stdout);
t.ok(x.ping);
t.ok(x.upload);
t.ok(x.download);
t.notOk(x.data);
t.truthy(x.ping);
t.truthy(x.upload);
t.truthy(x.download);
t.falsy(x.data);
});

test('--verbose --json', async t => {
const {stdout} = await execa('./cli.js', ['--verbose', '--json']);
const x = JSON.parse(stdout);
t.ok(x.ping);
t.ok(x.upload);
t.ok(x.download);
t.ok(x.data);
t.truthy(x.ping);
t.truthy(x.upload);
t.truthy(x.download);
t.truthy(x.data);
});

0 comments on commit 8bfaec5

Please sign in to comment.