diff --git a/package.json b/package.json index 43612b3..5735df5 100644 --- a/package.json +++ b/package.json @@ -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", @@ -85,7 +85,7 @@ "env", { "targets": { - "node": "4" + "node": 4 } } ], diff --git a/test/test-plugin.js b/test/test-plugin.js index 9a920b3..f9e678b 100644 --- a/test/test-plugin.js +++ b/test/test-plugin.js @@ -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; }';