All files / acceptance PrefixHTMLBodyTagsTest.js

100% Statements 8/8
100% Branches 0/0
100% Functions 2/2
100% Lines 8/8

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 211x   1x 1x   1x       1x   1x 1x 1x              
const PostCSS = require("postcss");
 
const PrefixWrap = require("../build/main");
const PrefixAssert = require("./support/PrefixAssert");
 
const postCSSSkip = PostCSS([
  PrefixWrap(".my-container", { prefixRootTags: true })
]);
 
const fixtures = __dirname + "/fixtures";
 
describe("Acceptance: Prefix html/body tags", () => {
  it("adds prefix to global selectors", () => {
    PrefixAssert.actualMatchesExpectedAfterPrefixWrap(
      postCSSSkip,
      fixtures + "/leave-body-raw.css",
      fixtures + "/leave-body-expected.css"
    );
  });
});