소스 검색

Fix webpack css inclusion check 2: electric boogaloo

Renée Kooi 6 년 전
부모
커밋
e8c7a04f5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/endtoend/create-react-app/test.js

+ 1 - 1
test/endtoend/create-react-app/test.js

@@ -11,7 +11,7 @@ describe('webpack build', () => {
     el.waitForExist()
     const bgColor = el.getCssProperty('background-color').value
     // computed value is rgb() or rgba(), not hex (but listing it here to show the expected value too)
-    expect(/^rgb\(250, ?250, ?250(?:, ?1)?\)$|^#fafafa$/.test(bgColor)).to.equal(true)
+    expect(/^rgba?\(250, ?250, ?250(?:, ?1)?\)$|^#fafafa$/.test(bgColor)).to.equal(true)
   })
 })