mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +02:00
chore: disable string escaping in snapshots (#7131)
This commit is contained in:
parent
4134ebb3fb
commit
9145ae88cc
60 changed files with 1881 additions and 1884 deletions
|
@ -126,7 +126,7 @@ dddd
|
|||
|
||||
\`\`\`js
|
||||
// highlight-next-line
|
||||
console.log(\\"preserved\\");
|
||||
console.log("preserved");
|
||||
\`\`\`",
|
||||
"highlightLines": [
|
||||
1,
|
||||
|
|
|
@ -69,7 +69,7 @@ describe('usePluralForm', () => {
|
|||
expect(mockUsePluralForm().selectMessage(1, 'one|many')).toBe('one');
|
||||
expect(mockUsePluralForm().selectMessage(10, 'one|many')).toBe('many');
|
||||
expect(consoleMock.mock.calls[0][0]).toMatchInlineSnapshot(`
|
||||
"Failed to use Intl.PluralRules for locale \\"zh-Hans\\".
|
||||
"Failed to use Intl.PluralRules for locale "zh-Hans".
|
||||
Docusaurus will fallback to the default (English) implementation.
|
||||
Error: pluralRules.resolvedOptions is not a function
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue