Skip to content

Conversation

despairblue
Copy link
Contributor

The snapshot method was missing in the typescript type-definition file.

regex(contents: string, regex: RegExp, message?: string): void;
/**
* Assert that contents matches a snapshot.
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It accepts an optional message too, like all the other asserts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

@sindresorhus sindresorhus changed the title add definition for snapshot assertion Add TypeScript definition for the snapshot assertion Feb 8, 2017
@novemberborn novemberborn merged commit 9341720 into avajs:master Feb 10, 2017
@novemberborn
Copy link
Member

Thanks @despairblue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants