Created
May 23, 2019 09:46
-
-
Save NiGhTTraX/3a4a17ac739b11dce8ecfc35ec2f7a1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function vit( | |
name: string, | |
definition: () => Promise<any>, | |
selector:string = '#root > *' | |
) { | |
it(name, async () => { | |
await definition(); | |
const result = await mugshot.check(name, selector); | |
expect(result.matches).to.be.true; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment