Skip to content

Commit

Permalink
Update test-plugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum authored Mar 21, 2017
1 parent d04d101 commit a231c00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ test('processing options prefix and not attribute selector', t => {
t.is(processing(fixtures, {prefix: 'test-'}), expected);
});

test('processing options prefix multiple', t => {
const expected = '.class, [type="test-text"], [class*="test-lorem-1 test-lorem-2"], [id^="test-myID"] { color:red; }';
const expected = '.class, [type="text"], [class*="lorem-1 lorem-2"], [id^="myID"] { color:red; }';
t.is(processing(fixtures, {prefix: 'test-'}), expected);
});

test('processing options prefix and attribute selector', t => {
const expected = '.class, [type="test-text"] { color:red; }';
const fixtures = '.class, [type="text"] { color:red; }';
Expand Down

0 comments on commit a231c00

Please sign in to comment.