Skip to content
Permalink
Browse files

fix(www): trying this again...

  • Loading branch information...
tivac committed Aug 13, 2019
1 parent e11947c commit b3d922125082534a6d56f2b582efa8d43b0aec0b
@@ -1,15 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`/rollup.js case sensitivity tests should warn about repeated references that point at the same files 1`] = `
Array [
Array [
"POTENTIAL DUPLICATE FILES:
packages/rollup/test/specimens/casing/bar.css
packages/rollup/test/specimens/Casing/bar.css",
],
]
`;

exports[`/rollup.js should accept an existing processor instance (no css in bundle) 1`] = `
Object {
"fake.css": "/* packages/rollup/test/specimens/fake.css */
@@ -28,7 +28,7 @@ Object {
}

/*# sourceMappingURL=a-890c0aa5.css.map */",
"a-890c0aa5.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/packages/rollup/test/specimens/multiple-chunks/b.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"a-[hash].css\\",\\"sourcesContent\\":[\\".b {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n\\\\n color: blue;\\\\n}\\\\n\\"]}",
"a-890c0aa5.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/a.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"a-[hash].css\\",\\"sourcesContent\\":[\\".a {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n \\\\n color: aqua;\\\\n}\\\\n\\"]}",
"a-a56cc35c.css": "/* packages/rollup/test/specimens/multiple-chunks/subfolder/a.css */
.a { color: azure; }
/*# sourceMappingURL=a-a56cc35c.css.map */",
@@ -39,7 +39,7 @@ Object {
}

/*# sourceMappingURL=b-097f3a93.css.map */",
"b-097f3a93.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/b.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"b-[hash].css\\",\\"sourcesContent\\":[\\".b {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n\\\\n color: blue;\\\\n}\\\\n\\"]}",
"b-097f3a93.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/packages/rollup/test/specimens/multiple-chunks/a.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"b-[hash].css\\",\\"sourcesContent\\":[\\".a {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n \\\\n color: aqua;\\\\n}\\\\n\\"]}",
}
`;

@@ -53,15 +53,15 @@ Object {
.a {
color: aqua;
}

/*# sourceMappingURL=a.css.map */",
"a2.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/a.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"a.css\\",\\"sourcesContent\\":[\\".a {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n \\\\n color: aqua;\\\\n}\\\\n\\"]}",
",
"a2.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/packages/rollup/test/specimens/multiple-chunks/b.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"a.css\\",\\"sourcesContent\\":[\\".b {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n\\\\n color: blue;\\\\n}\\\\n\\"]}",
"b.css": "/* packages/rollup/test/specimens/multiple-chunks/b.css */
.b {
color: blue;
}
",
"b.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/packages/rollup/test/specimens/multiple-chunks/a.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"b.css\\",\\"sourcesContent\\":[\\".a {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n \\\\n color: aqua;\\\\n}\\\\n\\"]}",

/*# sourceMappingURL=b.css.map */",
"b.css.map": "{\\"version\\":3,\\"sources\\":[\\"../../../specimens/multiple-chunks/b.css\\"],\\"names\\":[],\\"mappings\\":\\"AAAA,yDAAA;AAAA;IAGI,WAAW;AACf\\",\\"file\\":\\"b.css\\",\\"sourcesContent\\":[\\".b {\\\\n composes: a from \\\\\\"./subfolder/a.css\\\\\\";\\\\n\\\\n color: blue;\\\\n}\\\\n\\"]}",
}
`;

@@ -656,7 +656,7 @@ describe("/rollup.js", () => {
}

fn("should warn about repeated references that point at the same files", async () => {
const { logSnapshot } = logs("warn");
const { spy } = logs("warn");

const bundle = await rollup({
input : require.resolve("./specimens/casing/main.js"),
@@ -674,7 +674,8 @@ describe("/rollup.js", () => {
file : prefix(`./output/casing/main.js`),
});

logSnapshot();
expect(spy).toHaveBeenCalled();
expect(spy.mock.calls.length).toBe(2);
});
});

0 comments on commit b3d9221

Please sign in to comment.
You can’t perform that action at this time.