Skip to content

Instantly share code, notes, and snippets.

@NiGhTTraX
Created May 23, 2019 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NiGhTTraX/3a4a17ac739b11dce8ecfc35ec2f7a1d to your computer and use it in GitHub Desktop.
Save NiGhTTraX/3a4a17ac739b11dce8ecfc35ec2f7a1d to your computer and use it in GitHub Desktop.
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