Created
January 26, 2018 10:11
-
-
Save alexbeletsky/c8f5b82dd5e66ace0ab46d06e7ba5cf6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
expect.extend({ | |
toMatchSnapshot() { | |
// TODO: init testFile, testTitle | |
const result = toMatchSnapshot(this.actual, testFile, testTitle); | |
expect.assert(result.pass, !result.pass ? result.report() : ''); | |
return this; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment