Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

},
"devDependencies": {
"ava": "0.18.1",
"ava": "*",
"babel-cli": "^6.23.0",
"ava-codemods": "^0.3.2",
"babel-eslint": "^7.1.1",
Expand Down Expand Up @@ -85,7 +85,7 @@
"env",
{
"targets": {
"node": "4"
"node": 4
}
}
],
Expand Down
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 fixtures = '.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