webpack/test/hotCases/css/single-css-entry/index.js

20 lines
540 B
JavaScript
Raw Normal View History

it("should work", done => {
const links = window.document.getElementsByTagName("link");
expect(links[0].sheet.css).toContain("color: red;");
NEXT(
require("../../update")(done, true, () => {
const links = window.document.getElementsByTagName("link");
expect(links[0].sheet.css).toContain("color: blue;");
NEXT(
require("../../update")(done, true, () => {
const links = window.document.getElementsByTagName("link");
expect(links[0].sheet.css).toContain("color: yellow;");
done();
})
);
})
);
});