import{h}from"@stencil/core";import{newSpecPage}from"@stencil/core/testing";import{ScCustomerDetails}from"../sc-customer-details";describe("sc-customer-details",(()=>{it("renders",(async()=>{const e=await newSpecPage({components:[ScCustomerDetails],template:()=>h("sc-customer-details",{customer:{id:"asdf",email:"test@test.com",name:"test",phone:"1234567890",billing_address:{name:"test",line_1:"line_1",line_2:"line_2",city:"city line",state:"wi",postal_code:"53716",country:"us"}}},h("span",{slot:"heading"},h("slot",{name:"heading"},"Showing Customer Info")))});expect(e.root).toMatchSnapshot()})),it("has a loading state",(async()=>{const e=await newSpecPage({components:[ScCustomerDetails],template:()=>h("sc-customer-details",{loading:!0},h("span",{slot:"heading"},h("slot",{name:"heading"},"Test heading")))});expect(e.root).toMatchSnapshot()})),it("has an error state",(async()=>{const e=await newSpecPage({components:[ScCustomerDetails],template:()=>h("sc-customer-details",{error:"testmessage"},h("span",{slot:"heading"},h("slot",{name:"heading"},"Test heading")))});expect(e.root).toMatchSnapshot()})),it("has an empty state",(async()=>{const e=await newSpecPage({components:[ScCustomerDetails],template:()=>h("sc-customer-details",null,h("span",{slot:"heading"},h("slot",{name:"heading"},"Test heading")))});expect(e.root).toMatchSnapshot()}))}));