Skip to content

Commit 4f012a9

Browse files
committed
Add extra assertion on number of warnings
1 parent b1702d4 commit 4f012a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ describe('postcss-css-variables', function() {
200200
expect(colorDecl.value).to.be.a('string');
201201
expect(colorDecl.value).to.be.equal('undefined');
202202

203+
expect(result.warnings().length).to.be.equal(1);
203204
expect(result.warnings()[0].type).to.be.equal('warning');
204205
expect(result.warnings()[0].text).to.be.equal('variable --missing is undefined and used without a fallback');
205206
});

0 commit comments

Comments
 (0)