Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | const PostCSS = require("postcss");
const PrefixWrap = require("../build/main");
const PrefixAssert = require("./support/PrefixAssert");
// Generate a postcss instance with our plugin enabled.
const postCSS = PostCSS([PrefixWrap(".my-container")]);
const fixtures = __dirname + "/fixtures";
describe("Acceptance: Standard Prefixing", () => {
it("adds prefix class for tags", () => {
PrefixAssert.actualMatchesExpectedAfterPrefixWrap(
postCSS,
fixtures + "/standard-tags-raw.css",
fixtures + "/standard-tags-expected.css"
);
});
it("adds prefix class for ids", () => {
PrefixAssert.actualMatchesExpectedAfterPrefixWrap(
postCSS,
fixtures + "/standard-ids-raw.css",
fixtures + "/standard-ids-expected.css"
);
});
it("adds prefix class for classes", () => {
PrefixAssert.actualMatchesExpectedAfterPrefixWrap(
postCSS,
fixtures + "/standard-classes-raw.css",
fixtures + "/standard-classes-expected.css"
);
});
it("adds prefix class for multiple classes", () => {
PrefixAssert.actualMatchesExpectedAfterPrefixWrap(
postCSS,
fixtures + "/multiple-classes-raw.css",
fixtures + "/multiple-classes-expected.css"
);
});
});
|