瀏覽代碼

Fix tests

simov 6 年之前
父節點
當前提交
f63a4b17ed
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      package.json
  2. 2 2
      test/defaults-popup.js
  3. 2 2
      test/popup-options.js

+ 1 - 1
package.json

@@ -32,7 +32,7 @@
     "iconv-lite": "^0.4.24",
     "mocha": "^5.2.0",
     "node-sass": "^4.11.0",
-    "puppeteer": "^1.11.0",
+    "puppeteer": "^1.5.0",
     "rollup": "^1.1.0",
     "rollup-plugin-commonjs": "^9.2.0",
     "rollup-plugin-node-resolve": "^4.0.0"

+ 2 - 2
test/defaults-popup.js

@@ -55,10 +55,10 @@ module.exports = ({popup}) => {
   it('tab - theme', async () => {
     t.equal(
       await popup.evaluate(() =>
-        state.theme
+        state.theme.name
       ),
       'github',
-      'state.theme should equal github'
+      'state.theme.name should equal github'
     )
     t.strictEqual(
       await popup.evaluate(() =>

+ 2 - 2
test/popup-options.js

@@ -138,10 +138,10 @@ module.exports = ({popup, advanced, content}) => {
 
       t.equal(
         await popup.evaluate(() =>
-          state.theme
+          state.theme.name
         ),
         'github-dark',
-        'state.theme should equal github-dark'
+        'state.theme.name should equal github-dark'
       )
       t.equal(
         await popup.evaluate(() =>