Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 7347c08

Browse files
committed
Use indexOf instead of includes
It should fix failing tests on circleci.
1 parent 35e9052 commit 7347c08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ function test(name) {
4141
assert.equal(code.trim(), expected.trim(), 'should compile code correctly')
4242

4343
// Check css output
44-
if (['style', 'css-modules', 'css-modules-static', 'scss', 'pug', 'less'].includes(name)) {
44+
if (['style', 'css-modules', 'css-modules-static', 'scss', 'pug', 'less'].indexOf(name) > -1) {
4545
var css = read('expects/' + name + '.css')
4646
assert.equal(css.trim(), actualCss.trim(), 'should output style tag content')
47-
} else if (['no-css-extract'].includes(name)) {
47+
} else if (['no-css-extract'].indexOf(name) > -1) {
4848
assert.equal(undefined, actualCss, 'should ignore css()')
4949
} else {
5050
assert.equal('', actualCss.trim(), 'should always call css()')

0 commit comments

Comments
 (0)