mirror of https://github.com/webpack/webpack.git
23 lines
654 B
JavaScript
23 lines
654 B
JavaScript
it(`should generate correct url public path with css filename`, done => {
|
|
const h1 = document.createElement('h1');
|
|
document.body.appendChild(h1);
|
|
const h2 = document.createElement('h2');
|
|
document.body.appendChild(h1);
|
|
const h3 = document.createElement('h3');
|
|
document.body.appendChild(h1);
|
|
import("./index.css").then(x => {
|
|
try {
|
|
expect(x).toEqual({});
|
|
const style1 = getComputedStyle(h1);
|
|
expect(style1).toMatchSnapshot();
|
|
const style2 = getComputedStyle(h2);
|
|
expect(style2).toMatchSnapshot();
|
|
const style3 = getComputedStyle(h3);
|
|
expect(style3).toMatchSnapshot();
|
|
done();
|
|
} catch (e) {
|
|
done(e);
|
|
}
|
|
}, done);
|
|
});
|