Skip to content

Commit

Permalink
update tests for latest AVA version
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 1, 2016
1 parent 57721c9 commit 06b2f98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -13,7 +13,7 @@
"node": ">=0.10.0"
},
"scripts": {
"test": "node test.js"
"test": "ava"
},
"files": [
"index.js"
Expand All @@ -32,6 +32,6 @@
"strip"
],
"devDependencies": {
"ava": "0.0.4"
"ava": "*"
}
}
10 changes: 4 additions & 6 deletions test.js
@@ -1,8 +1,6 @@
'use strict';
var test = require('ava');
var condenseWhitespace = require('./');
import test from 'ava';
import m from './';

test(function (t) {
t.assert(condenseWhitespace(' foo bar baz ') === 'foo bar baz');
t.end();
test(t => {
t.is(m(' foo bar baz '), 'foo bar baz');
});

0 comments on commit 06b2f98

Please sign in to comment.