Tag: 光谱

Spectrontesting产生JScript语法错误

我试图testing电子的spectrontesting方面,但当我正在通过一个教程,我不断收到这个错误信息,每当我运行npm run test:e2e 。 我的testing文件语法正确,但我不知道为什么我通过编译遇到错误 眼镜: Nodejs 6.10.3 电子1.6.1 这是错误信息 这里是json文件package.json { "name": "your-app", "version": "0.1.0", "main": "main.js", "scripts": { "start": "C:/Users/Livs/Documents/imdc/logger/node_modules/.bin/electron .", "test:e2e": "C:/Users/Livs/Documents/imdc/logger/test.js" }, "devDependencies": { "electron-chromedriver": "^1.7.1", "electron-prebuilt": "^1.4.13", "electron-rebuild": "^1.5.11", "chai": "^3.5.0", "chai-as-promised": "^5.3.0", "electron": "^1.3.4", "mocha": "^3.0.2", "spectron": "^3.4.0" } } 下面是testing文件test.js const Application = require('spectron').Application; const path = require('path'); […]