import { RefineNameFn } from "./index" ; /** allows refining the current name of a test step */ export class NameRefiner { constructor ( private name ) { } /** returns the refined name */ finalName ( ) { return this . name ; } /** returns a function that can be called to refine the name */ refineFn ( ) { return this . refineName . bind ( this ) ; } /** updates the currently stored name to the given name */ private refineName ( newName ) { this . name = newName ; } }