mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 10:41:20 -08:00
update .prettierignore
This commit is contained in:
1 parent
463884b50a
commit
7912559c17
5 files changed
+2609
-2615
No files matched your search
@@ -1,19 +1,19 @@
|
||||
describe('Constructor', function() {
|
||||
describe('Constructor', function () {
|
||||
var url = './assets/sample/video.mp4';
|
||||
|
||||
afterEach(function() {
|
||||
[...Artplayer.instances].forEach(art => {
|
||||
afterEach(function () {
|
||||
[...Artplayer.instances].forEach((art) => {
|
||||
art.destroy(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('Constructor is a global variable', function() {
|
||||
it('Constructor is a global variable', function () {
|
||||
expect(Artplayer).to.be.an('function');
|
||||
expect(Artplayer.instances).to.be.an('array');
|
||||
expect(Artplayer.instances.length).to.be.equal(0);
|
||||
});
|
||||
|
||||
it('Instance state', function() {
|
||||
it('Instance state', function () {
|
||||
var sample1 = new Artplayer({ container: '.sample1', url: url });
|
||||
expect(sample1.id).to.equal(1);
|
||||
var sample2 = new Artplayer({ container: '.sample2', url: url });
|
||||
|
||||
Reference in new issue
Block a user