From a231c00769d4f222411e822ffa1dc13edead3b24 Mon Sep 17 00:00:00 2001 From: Ivan Demidov Date: Tue, 21 Mar 2017 17:34:34 +0300 Subject: [PATCH] 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; }';