Skip to content

Commit b40bbec

Browse files
committed
Use promise API in test
1 parent 0532af8 commit b40bbec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ var test = function(input, output, opts, done) {
88
input = fs.readFileSync(path.join('test/fixtures', input), 'utf-8');
99
output = fs.readFileSync(path.join('test/fixtures', output), 'utf-8');
1010

11-
expect(postcss(plugin(opts)).process(input).css).to.eql(output);
12-
done();
11+
postcss([ plugin(opts) ]).process(input).then(function(result) {
12+
expect(result.css).to.eql(output);
13+
done();
14+
});
1315
};
1416

1517
describe('postcss-generate-preset', function() {

0 commit comments

Comments
 (0)