import{newSpecPage}from"@stencil/core/testing";import{ScRecurringPriceChoiceContainer}from"../sc-recurring-price-choice-container";import{h}from"@stencil/core";import{__}from"@wordpress/i18n";describe("sc-recurring-price-choice-container",(()=>{it("renders",(async()=>{const e=await newSpecPage({components:[ScRecurringPriceChoiceContainer],html:"<sc-recurring-price-choice-container></sc-recurring-price-choice-container>"});expect(e.root).toMatchSnapshot()})),it("It should render the Price choices with the Label",(async function(){const e=await newSpecPage({components:[ScRecurringPriceChoiceContainer],template:()=>h("sc-recurring-price-choice-container",{label:__("Subscribe and Save","surecart"),prices:[{id:"1",name:"Monthly",amount:2900,currency:"usd"},{id:"2",name:"Yearly",amount:2e4,currency:"usd"},{id:"3",name:"Weekly",amount:1200,currency:"usd"}]})});expect(e.root).toMatchSnapshot()}))}));