Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Using #149

Open
hannaofsweden opened this issue Jul 26, 2021 · 0 comments
Open

Using #149

hannaofsweden opened this issue Jul 26, 2021 · 0 comments

Comments

@hannaofsweden
Copy link

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.

Is this a bug report or a feature request?

Bug report.

If this is a bug report, please provide as much info as possible

  • version

2.1.7

  • platform

Windows, Unix

  • expected behavior

Calling snapshot like this:

snapshot('Before typing')

Should result in a line in snapshot.json like this:

"Before typing": "<div>Example HTML code</div"

  • actual behavior

The resulting file always uses the index of the snapshot in the test, i.e.:

1: "<div>Example HTML code</div"

This is in confilct with the documentation. You can use this format to do it but it's more verbose:

snapshot( { name: "Before typing" } )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant