Skip to content

Commit 2e1d49b

Browse files
committed
test: MadLittleMods#31 - added test to validate warning message
1 parent a5dba49 commit 2e1d49b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ describe('postcss-css-variables', function() {
199199
var colorDecl = fooRule.nodes[0];
200200
expect(colorDecl.value).to.be.a('string');
201201
expect(colorDecl.value).to.be.equal('undefined');
202+
203+
expect(result.warnings()[0].type).to.be.equal('warning');
204+
expect(result.warnings()[0].text).to.be.equal('variable --missing is undefined and used without a fallback');
202205
});
203206
});
204207
});

0 commit comments

Comments
 (0)