Skip to content

Commit a231c00

Browse files
authored
Update test-plugin.js
1 parent d04d101 commit a231c00

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test-plugin.js

+6
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ test('processing options prefix and not attribute selector', t => {
1616
t.is(processing(fixtures, {prefix: 'test-'}), expected);
1717
});
1818

19+
test('processing options prefix multiple', t => {
20+
const expected = '.class, [type="test-text"], [class*="test-lorem-1 test-lorem-2"], [id^="test-myID"] { color:red; }';
21+
const expected = '.class, [type="text"], [class*="lorem-1 lorem-2"], [id^="myID"] { color:red; }';
22+
t.is(processing(fixtures, {prefix: 'test-'}), expected);
23+
});
24+
1925
test('processing options prefix and attribute selector', t => {
2026
const expected = '.class, [type="test-text"] { color:red; }';
2127
const fixtures = '.class, [type="text"] { color:red; }';

0 commit comments

Comments
 (0)