From a231c00769d4f222411e822ffa1dc13edead3b24 Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Tue, 21 Mar 2017 17:34:34 +0300 Subject: [PATCH 1/4] Update test-plugin.js --- test/test-plugin.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test-plugin.js b/test/test-plugin.js index 9a920b3..9c514ff 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 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; }'; From 58ca31efceaae1ae8c9592d1fae9ca32c2049cf1 Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Tue, 21 Mar 2017 17:41:32 +0300 Subject: [PATCH 2/4] fix(package): node value --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 43612b3..ef198a1 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "env", { "targets": { - "node": "4" + "node": 4 } } ], From d97737e2266fb5cbc8b589e86fbcb1f6b7d1a8ab Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Tue, 21 Mar 2017 17:53:13 +0300 Subject: [PATCH 3/4] fix(package): clinton reccomendation --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef198a1..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", From 2f6a9ca50f0d8ec73ac014edae1f112d230fc58e Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Wed, 22 Mar 2017 00:28:50 +0400 Subject: [PATCH 4/4] test(test-plugin): fix double name --- test/test-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-plugin.js b/test/test-plugin.js index 9c514ff..f9e678b 100644 --- a/test/test-plugin.js +++ b/test/test-plugin.js @@ -18,7 +18,7 @@ test('processing options prefix and not attribute selector', t => { 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; }'; + const fixtures = '.class, [type="text"], [class*="lorem-1 lorem-2"], [id^="myID"] { color:red; }'; t.is(processing(fixtures, {prefix: 'test-'}), expected); });