mirror of https://github.com/webpack/webpack.git
9 lines
314 B
JavaScript
9 lines
314 B
JavaScript
import * as style from "./style.css";
|
|
|
|
it("should compile and load style on demand", () => {
|
|
expect(style).toEqual({});
|
|
const computedStyle = getComputedStyle(document.body);
|
|
expect(computedStyle.getPropertyValue("background")).toBe(" red");
|
|
expect(computedStyle.getPropertyValue("margin")).toBe(" 10px");
|
|
});
|