Skip to content

Commit 82a887c

Browse files
committedJan 1, 2016
update tests for latest AVA version
1 parent 8265d04 commit 82a887c

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"node": ">=0.10.0"
1919
},
2020
"scripts": {
21-
"test": "xo && node test.js"
21+
"test": "xo && ava"
2222
},
2323
"files": [
2424
"index.js"
@@ -51,7 +51,7 @@
5151
"ansi-regex": "^2.0.0"
5252
},
5353
"devDependencies": {
54-
"ava": "0.0.4",
54+
"ava": "*",
5555
"xo": "*"
5656
}
5757
}

‎test.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
'use strict';
2-
var test = require('ava');
3-
var hasAnsi = require('./');
1+
import test from 'ava';
2+
import m from './';
43

5-
test(function (t) {
6-
t.assert(hasAnsi('foo\u001b[4mcake\u001b[0m'));
7-
t.assert(!hasAnsi('cake'));
8-
t.end();
4+
test(t => {
5+
t.true(m('foo\u001b[4mcake\u001b[0m'));
6+
t.false(m('cake'));
97
});

0 commit comments

Comments
 (0)
Please sign in to comment.