mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11: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
+7
-7
@@ -1,21 +1,21 @@
|
||||
describe('Option', function() {
|
||||
describe('Option', function () {
|
||||
var url = './assets/sample/video.mp4';
|
||||
|
||||
afterEach(function() {
|
||||
[...Artplayer.instances].forEach(art => {
|
||||
afterEach(function () {
|
||||
[...Artplayer.instances].forEach((art) => {
|
||||
art.destroy(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('Throw error when multiple instances on the same dom element', function() {
|
||||
expect(function() {
|
||||
it('Throw error when multiple instances on the same dom element', function () {
|
||||
expect(function () {
|
||||
new Artplayer({ container: '.sample1', url: url });
|
||||
new Artplayer({ container: '.sample1', url: url });
|
||||
}).to.throw(/Cannot mount multiple instances on the same dom element/);
|
||||
});
|
||||
|
||||
it('Throw error when container is not a dom element or selector', function() {
|
||||
expect(function() {
|
||||
it('Throw error when container is not a dom element or selector', function () {
|
||||
expect(function () {
|
||||
new Artplayer({
|
||||
container: null,
|
||||
url: url,
|
||||
|
||||
Reference in new issue
Block a user