import { assert } from "chai" ; import { trimDollar } from "./trim-dollar" ; suite ( "trimDollar" , function ( ) { const tests = { foo : "foo" , "$ foo" : "foo" , "$   foo" : "foo" , } ; for ( const [ give , want ] of Object . entries ( tests ) ) { test ( `${ give } --> ${ want }` , function ( ) { assert . equal ( want , trimDollar ( give ) ) ; } ) ; } } ) ;