Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
test: Add nested order by id test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Jul 7, 2017
1 parent 2c2f12b commit 28363ab
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/__snapshots__/webpack-integration.test.js.snap
@@ -1,5 +1,20 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Webpack Integration Tests chunk-modules-nested-ordered-by-id 1`] = `
"body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.block {
color: tomato;
}
.App {
color: black;
}
"
`;

exports[`Webpack Integration Tests chunk-modules-ordered-by-id 1`] = `
".block {
color: tomato;
Expand Down
2 changes: 2 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/a.js
@@ -0,0 +1,2 @@
require('./b.txt');
require('./a.txt');
3 changes: 3 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/a.txt
@@ -0,0 +1,3 @@
.App {
color: black;
}
3 changes: 3 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/b.txt
@@ -0,0 +1,3 @@
.block {
color: tomato;
}
5 changes: 5 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/c.txt
@@ -0,0 +1,5 @@
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
11 changes: 11 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/expected/file.css
@@ -0,0 +1,11 @@
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.block {
color: tomato;
}
.App {
color: black;
}
2 changes: 2 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/index.js
@@ -0,0 +1,2 @@
require('./c.txt');
require('./a.js');
10 changes: 10 additions & 0 deletions test/cases/chunk-modules-nested-ordered-by-id/webpack.config.js
@@ -0,0 +1,10 @@
import ExtractTextPlugin from '../../../src/index';

module.exports = {
entry: './index',
plugins: [
new ExtractTextPlugin({
filename: 'file.css',
}),
],
};

0 comments on commit 28363ab

Please sign in to comment.