import{newSpecPage}from"@stencil/core/testing";import{PrestoTimestamp}from"../presto-timestamp";describe("presto-timestamp",(()=>{it("renders",(async()=>{const t=await newSpecPage({components:[PrestoTimestamp],html:'<presto-timestamp time="1:00"></presto-timestamp>'});expect(t.root).toMatchSnapshot()})),it("renders custom content",(async()=>{const t=await newSpecPage({components:[PrestoTimestamp],html:'<presto-timestamp time="1:00">Custom Content</presto-timestamp>'});expect(t.root).toMatchSnapshot()})),it("timeToSeconds",(async()=>{const t=new PrestoTimestamp;expect(t.timeToSeconds("1:00")).toBe(60),expect(t.timeToSeconds("12:34")).toBe(754)}))}));