Skip to content

Commit

Permalink
Add tests for styles when using Vue + JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Apr 7, 2019
1 parent ae5f429 commit 63d5d8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/functional.js
Expand Up @@ -1490,6 +1490,18 @@ module.exports = {
'class TestClassSyntax'
);

// test that global styles are working correctly
webpackAssert.assertOutputFileContains(
'main.css',
'#app {'
);

// test that CSS Modules (for scoped styles) is used
webpackAssert.assertOutputFileContains(
'main.css',
'.h1_' // `.h1` is transformed to `.h1_[a-zA-Z0-9]`
);

testSetup.requestTestPage(
path.join(config.getContext(), 'www'),
[
Expand Down

0 comments on commit 63d5d8b

Please sign in to comment.