import { AsymmetricMatcher } from './AsymmetricMatcher' ; import * as utils from '../utils' ; export class ToMatchPath extends AsymmetricMatcher < string > { constructor ( actual , inverse = false ) { super ( actual ) ; this . inverse = inverse ; } asymmetricMatch ( expected ) { return this . actual === utils . normalizePath ( expected ) ; } match ( expected ) { const pass = this . asymmetricMatch ( expected ) ; return { pass , message : pass ? this . passMessage ( this . actual , expected ) : this . failMessage ( this . actual , expected ) , } ; } method ( ) { return 'toMatchPath' ; } toString ( ) { return 'ToMatchPath' ; } } export default ( actual ) : ToMatchPath => new ToMatchPath ( actual ) ;