From ec09bcdc92ce311de098c3e3533773a6de36ea16 Mon Sep 17 00:00:00 2001 From: Harvey Date: Tue, 19 Jul 2022 14:16:38 +0800 Subject: [PATCH] update types.test.ts --- package.json | 2 +- test/types.test.ts | 28 +++++++++++++++++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 62625ce79..4eed58fc9 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "@parcel/transformer-inline-string": "^2.6.2", "@parcel/transformer-less": "^2.6.2", "@parcel/transformer-vue": "^2.6.2", - "artplayer": "^4.5.3", + "artplayer": "latest", "chai": "^4.3.6", "cpy": "^9.0.1", "cross-env": "^7.0.3", diff --git a/test/types.test.ts b/test/types.test.ts index b1c6e52e6..7fcd5f7bd 100644 --- a/test/types.test.ts +++ b/test/types.test.ts @@ -1,5 +1,6 @@ import Artplayer from '../packages/artplayer'; import artplayerPluginDanmuku from '../packages/artplayer-plugin-danmuku'; +import artplayerPluginAds from '../packages/artplayer-plugin-ads'; const art = new Artplayer({ container: '.artplayer-app', @@ -10,13 +11,26 @@ const art = new Artplayer({ margin: [0, '10%'], theme: 'light', }), + artplayerPluginAds({ + html: '', + video: '/assets/sample/test1.mp4', + url: 'http://artplayer.org', + }), ], }); -art.plugins.add( - artplayerPluginDanmuku({ - danmuku: '', - margin: [0, '10%'], - theme: 'light', - }), -); +art.plugins + .add( + artplayerPluginDanmuku({ + danmuku: '', + margin: [0, '10%'], + theme: 'light', + }), + ) + .add( + artplayerPluginAds({ + html: '', + video: '/assets/sample/test1.mp4', + url: 'http://artplayer.org', + }), + );