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