import{h}from"@stencil/core";import{newSpecPage}from"@stencil/core/testing";import{ScPriceRange}from"../sc-price-range";describe("sc-price-range",(()=>{it("renders",(async()=>{const e=await newSpecPage({components:[ScPriceRange],html:"<sc-price-range></sc-price-range>"});expect(e.root).toMatchSnapshot()})),it("It should render the correct minimum and maximum price in a range",(async function(){const e=await newSpecPage({components:[ScPriceRange],template:()=>h("sc-price-range",{prices:[{amount:2900,currency:"usd"},{amount:200,currency:"usd"},{amount:120,currency:"usd"}]})});expect(e.root).toMatchSnapshot()})),it("It should render one price if only one is passed",(async function(){const e=await newSpecPage({components:[ScPriceRange],template:()=>h("sc-price-range",{prices:[{amount:2900,currency:"usd"}]})});expect(e.root).toMatchSnapshot()}))}));