import assert from 'assert' ; import { Given , When , Then } from '@cucumber/fake-cucumber' ; Given ( 'there are {int} {float} coins inside' , function ( count , denomination ) { assert ( count ) ; assert ( denomination ) ; } ) ; Given ( 'there are no chocolates inside' , function ( ) { } ) ; Given ( 'there are {int} chocolates inside' , function ( chocolateCount ) { assert ( chocolateCount ) ; } ) ; When ( 'the customer tries to buy a {float} chocolate with a {float} coin' , function ( price , paid ) { assert ( price ) ; assert ( paid ) ; } ) ; Then ( 'the sale should not happen' , function ( ) { } ) ; Then ( "the customer's change should be {int} {float} coin(s)" , function ( count , denomination ) { assert ( count ) ; assert ( denomination ) ; } ) ;