Permalink
Browse files

revert tests

  • Loading branch information...
Illyism committed Jun 6, 2017
1 parent 759ba95 commit 11d01f3605f3bd32baa0ddea8a1abeb1e82603b8
View
@@ -198,13 +198,16 @@ describe("delimited", () => {
result = purify(content, css)
it("removes the extra comma", () => {
var commaCount = result.split("").reduce((total, chr) => {
if (chr === ",") {
return total + 1
}
var commaCount = result.split("").reduce(
(total, chr) => {
if (chr === ",") {
return total + 1
}
return total
}, 0)
return total
},
0
)
expect(commaCount).toBe(1)
})
@@ -249,16 +252,3 @@ describe("pseudo classes", () => {
expect(result.includes("row:after") === true).toBe(false)
})
})
describe("classes with hyphens", () => {
const content = read("class_hyphen/index.html"),
css = read("class_hyphen/index.css"),
result = purify(content, css)
it("removes unused class", () => {
expect(result.includes(".carousel ") === false).toBe(true)
})
it("keeps used class", () => {
expect(result.includes(".carousel-control") === true).toBe(true)
})
})
@@ -1,10 +0,0 @@
.carousel {
background: blue;
color: red;
font-size: 15px;
}
.carousel-control {
width: 100vw;
height: 100vh;
}
@@ -1 +0,0 @@
<div class="carousel-control">Hello world</div>

0 comments on commit 11d01f3

Please sign in to comment.