diff --git a/.travis.yml b/.travis.yml index 74b2b030e..a0c887f89 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ node_js: before_script: - npm install + - npm i packages/* && lerna bootstrap --hoist script: - npm run lint diff --git a/docs/test/index.test.js b/docs/test/index.test.js index 150fead5c..42016d8b6 100644 --- a/docs/test/index.test.js +++ b/docs/test/index.test.js @@ -1,7 +1,7 @@ var artBaseOption = { container: '.artplayer-app', - url: 'https://blog.zhw-island.com/assets-cdn/video/one-more-time-one-more-chance-480p.mp4' -} + url: 'https://blog.zhw-island.com/assets-cdn/video/one-more-time-one-more-chance-480p.mp4', +}; describe('Detect registration status', function() { it('Constructor is a global variable', function() { @@ -20,8 +20,8 @@ describe('Detect registration status', function() { }); it('Throw error when multiple instances on the same dom element', function() { - expect(function () { + expect(function() { new Artplayer(artBaseOption); - }).to.throw(/Cannot mount multiple instances on the same dom element/) + }).to.throw(/Cannot mount multiple instances on the same dom element/); }); }); diff --git a/package.json b/package.json index 7a7de5c0f..8410bbae4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "publish": "lerna publish", "build": "lerna run build", "test": "node ./node_modules/.bin/mocha-chrome ./docs/test/index.html --mocha '{\"ui\":\"bdd\"}'", - "lint": "eslint packages/*/src" + "lint": "node ./node_modules/.bin/eslint packages/*/src" }, "repository": { "type": "git",