const fs = __non_webpack_require__("fs");
const path = __non_webpack_require__("path");

it("basic", () => {
	require("./index.scss");
	const sourceMap = fs.readFileSync(__dirname + "/bundle0.css.map", "utf-8");
	const scss = fs.readFileSync(path.resolve(CONTEXT, "./index.scss"), "utf-8");
	const map = JSON.parse(sourceMap);
	expect(map.sources).toContain("webpack:///./index.scss");
	expect(map.file).toEqual("bundle0.css");
	expect(map.sourcesContent).toEqual([scss]);
});
