Skip to content

Commit

Permalink
Fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Jun 23, 2017
1 parent 5e948e8 commit 200f7c4
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/tokenize.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ function run(css, tokens) {
}

it('tokenizes inline comments', () => {
run('// a\n', [ ['comment', '// a', 1, 1, 1, 4, 'inline'],
['space', '\n'] ]);
run('// a\n', [
['comment', '// a', 1, 1, 1, 4, 'inline'],
['space', '\n']
]);
});

it('tokenizes inline comments with any new line', () => {
run('// a\r\n', [ ['comment', '// a', 1, 1, 1, 4, 'inline'],
['space', '\r\n'] ]);
run('// a\r\n', [
['comment', '// a', 1, 1, 1, 4, 'inline'],
['space', '\r\n']
]);
});

it('tokenizes inline comments in end of file', () => {
Expand All @@ -38,6 +42,8 @@ it('tokenizes recursively interpolations', () => {
});

it('tokenizes multiline url()', () => {
run('url(a\nb)', [ ['word', 'url', 1, 1, 1, 3],
['brackets', '(a\nb)', 1, 4, 2, 2] ]);
run('url(a\nb)', [
['word', 'url', 1, 1, 1, 3],
['brackets', '(a\nb)', 1, 4, 2, 2]
]);
});

0 comments on commit 200f7c4

Please sign in to comment.