Skip to content

Commit 37750c7

Browse files
committed
Add single quote string test for #25.
1 parent adc7063 commit 37750c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/__tests__/pseudos.js

+6
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,9 @@ test('negation pseudo element with quotes', 'h1:not(".heading")', (t, tree) => {
9696
t.equal(tree.nodes[0].nodes[1].value, ':not');
9797
t.equal(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, '".heading"');
9898
});
99+
100+
test('negation pseudo element with single quotes', "h1:not('.heading')", (t, tree) => {
101+
t.plan(2);
102+
t.equal(tree.nodes[0].nodes[1].value, ':not');
103+
t.equal(tree.nodes[0].nodes[1].nodes[0].nodes[0].value, "'.heading'");
104+
});

0 commit comments

Comments
 (0)