Skip to content

Commit

Permalink
Update AVA to 0.14.0. Closes #13.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-eb committed Apr 9, 2016
1 parent 4afc655 commit e5df93c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
],
"license": "MIT",
"devDependencies": {
"ava": "^0.13.0",
"ava": "^0.14.0",
"babel-cli": "^6.4.5",
"babel-core": "^6.4.5",
"babel-plugin-add-module-exports": "^0.1.2",
Expand Down
14 changes: 7 additions & 7 deletions src/__tests__/index.js
Expand Up @@ -24,7 +24,7 @@ let redify = postcss.plugin('redify', () => {

ava('should not print anything if no plugins', t => {
return postcss([plugin()]).process(fixture).then(result => {
t.same(result.messages.length, 0);
t.deepEqual(result.messages.length, 0);
});
});

Expand All @@ -35,7 +35,7 @@ ava('should work with sync plugins', t => {
];

return postcss(processors).process(fixture).then(result => {
t.same(result.messages.length, 1);
t.deepEqual(result.messages.length, 1);
});
});

Expand All @@ -46,7 +46,7 @@ ava('should work with async plugins', t => {
];

return postcss(processors).process(fixture).then(result => {
t.same(result.messages.length, 1);
t.deepEqual(result.messages.length, 1);
});
});

Expand All @@ -66,7 +66,7 @@ ava('should print different colours for the slower plugins', t => {
];

return postcss(processors).process(fixture).then(result => {
t.same(result.messages.length, 10);
t.deepEqual(result.messages.length, 10);
});
});

Expand All @@ -77,11 +77,11 @@ ava('should work with filenames', t => {
];

return postcss(processors).process(fixture, {from: 'app.css'}).then(result => {
t.same(result.messages.length, 1);
t.deepEqual(result.messages.length, 1);
});
});

ava('should use the postcss plugin api', t => {
t.ok(plugin().postcssVersion, 'should be able to access version');
t.same(plugin().postcssPlugin, name, 'should be able to access name');
t.truthy(plugin().postcssVersion, 'should be able to access version');
t.deepEqual(plugin().postcssPlugin, name, 'should be able to access name');
});

0 comments on commit e5df93c

Please sign in to comment.