const img = new URL("./img.png", import.meta.url);

it("should allow to create css modules", done => {
	import("./asyncChunk").then(({ default: x }) => {
		try {
			expect(img.toString()).toBe("https://test.cases/path/img.png");
			expect(x.default.class).toEqual("test_module_css-class");
		} catch (e) {
			return done(e);
		}

		done();
	}, done);
});
