Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
It turns out the test wasn't broken, I had just flubbed the escaping in
the snapshot. The easiest way to see that this actually works is

```bash
$ cat | prettier --stdin
"hol\\a (the a is not escaped)" // press Control-D after the newline
"hol\\a (the a is not escaped)"; // press Control-D after the newline
```
  • Loading branch information
josephfrazier committed May 10, 2017
1 parent 20dc94b commit eab837b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/quotes/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ exports[`strings.js 1`] = `
"a";
"hola";
"hola";
"hol\\a (the a is not escaped)";
"hol\\a (the a is not escaped)";
"hol\\\\a (the a is not escaped)";
"hol\\\\a (the a is not escaped)";
"multiple a unnecessary a escapes";
"multiple a unnecessary a escapes";
"unnecessarily escaped character preceded by escaped backslash \\\\a";
Expand Down Expand Up @@ -311,8 +311,8 @@ exports[`strings.js 2`] = `
'a';
'hola';
'hola';
'hol\\a (the a is not escaped)';
'hol\\a (the a is not escaped)';
'hol\\\\a (the a is not escaped)';
'hol\\\\a (the a is not escaped)';
'multiple a unnecessary a escapes';
'multiple a unnecessary a escapes';
'unnecessarily escaped character preceded by escaped backslash \\\\a';
Expand Down

0 comments on commit eab837b

Please sign in to comment.