mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-28 10:31:20 -08:00
test fypofix
This commit is contained in:
1 parent
d1da9f3de8
commit
02009e854d
3 files changed
+6
-5
No files matched your search
@@ -5,6 +5,7 @@ node_js:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- npm install
|
- npm install
|
||||||
|
- npm i packages/* && lerna bootstrap --hoist
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
var artBaseOption = {
|
var artBaseOption = {
|
||||||
container: '.artplayer-app',
|
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() {
|
describe('Detect registration status', function() {
|
||||||
it('Constructor is a global variable', 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() {
|
it('Throw error when multiple instances on the same dom element', function() {
|
||||||
expect(function () {
|
expect(function() {
|
||||||
new Artplayer(artBaseOption);
|
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/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
"publish": "lerna publish",
|
"publish": "lerna publish",
|
||||||
"build": "lerna run build",
|
"build": "lerna run build",
|
||||||
"test": "node ./node_modules/.bin/mocha-chrome ./docs/test/index.html --mocha '{\"ui\":\"bdd\"}'",
|
"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": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in new issue
Block a user