import { assert } from "chai" ; import * as config from "." ; suite ( "isConfigurationFile" , function ( ) { const tests = { ".prettierrc" : true , ".github/prettifier.yml" : true , ".foorc" : false , ".github/foo.yml" : false , ".prettifier.yml" : false , "prettifier.yml" : false , prettierrc : false , "sub/.prettierrc" : false , "sub/.github/prettifier.yml" : false , } ; for ( const [ give , want ] of Object . entries ( tests ) ) { test ( `${ give } --> ${ want }` , function ( ) { assert . equal ( config . isConfigFile ( give ) , want ) ; } ) ; } } ) ;