summaryrefslogtreecommitdiff
path: root/packages/astro/test/css-order-layout.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/css-order-layout.test.js')
-rw-r--r--packages/astro/test/css-order-layout.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/test/css-order-layout.test.js b/packages/astro/test/css-order-layout.test.js
index 3ce08a7b3..1871e812b 100644
--- a/packages/astro/test/css-order-layout.test.js
+++ b/packages/astro/test/css-order-layout.test.js
@@ -51,9 +51,9 @@ describe('CSS ordering - import order with layouts', () => {
let specialButtonCSS = -1;
let globalCSS = -1;
for (let i = 0; i < content.length; i++) {
- if (content[i].css.indexOf('.SpecialButton') !== -1) {
+ if (content[i].css.includes('.SpecialButton')) {
specialButtonCSS = i;
- } else if (content[i].css.indexOf('green') !== -1) {
+ } else if (content[i].css.includes('green')) {
globalCSS = i;
}
}