Skip to content

Commit

Permalink
Add escape sequence tests for #89.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-eb committed Nov 8, 2016
1 parent 4ea800d commit 4104b41
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/__tests__/escapes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {test} from './util/helpers';

test('escaped semicolon', '.\\;', (t, tree) => {
t.deepEqual(tree.nodes[0].nodes[0].value, '\\;');
t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
});

test('escaped semicolon', '#\\;', (t, tree) => {
t.deepEqual(tree.nodes[0].nodes[0].value, '\\;');
t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
});

0 comments on commit 4104b41

Please sign in to comment.