import{videoData}from"../index";describe("WordPress Analytics",(()=>{it("is defined",(async()=>{expect(videoData).toBeDefined()})),it("will always display the highest currentTime",(()=>{videoData({currentTime:10});const e=videoData({currentTime:9});expect(e.video_current_time).toBe(10)})),it("video_current_time will never be greater that duration",(()=>{const e=videoData({currentTime:100,duration:10});expect(e.video_current_time).toBe(10)})),it("video_provider will never be null if null it will be html5",(()=>{const e=videoData({provider:""});expect(e.video_provider).toBe("html5")})),it("video_url will be same as player.source",(()=>{const e=videoData({source:"https://www.youtube.com/watch?v=CH50zuS8DD0&t=7s"});expect(e.video_url).toBe("https://www.youtube.com/watch?v=CH50zuS8DD0&t=7s")})),it("video_title will be same as player.config.title",(()=>{const e=videoData({config:{title:"testvideo1.mp4"}});expect(e.video_title).toBe("testvideo1.mp4")}))}));