Skip to content

Commit bf37b70

Browse files
authored
Update snapshot
1 parent b1d0b46 commit bf37b70

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

__tests__/hooks/useRenderMarkdownAsHTML.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test('renderMarkdown should add accessibility text for external links', async ()
4141
await expect(
4242
pageObjects.runHook('useRenderMarkdownAsHTML', [], fn => fn('Click [here](https://aka.ms/) to find out more.'))
4343
).resolves.toMatchInlineSnapshot(`
44-
"<p>Click <a href=\\"https://aka.ms/\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\" title=\\"Opens in a new window; external.\\">here<img src=\\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\\" alt=\\"Opens in a new window; external.\\" class=\\"webchat__markdown__external-link-icon\\" /></a> to find out more.</p>
44+
"<p>Click <a href="https://aka.ms/" rel="noopener noreferrer" target="_blank" title="Opens in a new window; external.">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="Opens in a new window; external." class="webchat__markdown__external-link-icon" /></a> to find out more.</p>
4545
"
4646
`);
4747
});
@@ -52,7 +52,7 @@ test('renderMarkdown should add accessibility text for external links with yue',
5252
await expect(
5353
pageObjects.runHook('useRenderMarkdownAsHTML', [], fn => fn('Click [here](https://aka.ms/) to find out more.'))
5454
).resolves.toMatchInlineSnapshot(`
55-
"<p>Click <a href=\\"https://aka.ms/\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\" title=\\"喺新嘅視窗開啟外部連結。\\">here<img src=\\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\\" alt=\\"喺新嘅視窗開啟外部連結。\\" class=\\"webchat__markdown__external-link-icon\\" /></a> to find out more.</p>
55+
"<p>Click <a href="https://aka.ms/" rel="noopener noreferrer" target="_blank" title="喺新嘅視窗開啟外部連結。">here<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="喺新嘅視窗開啟外部連結。" class="webchat__markdown__external-link-icon" /></a> to find out more.</p>
5656
"
5757
`);
5858
});

packages/bundle/src/__tests__/renderMarkdown.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('renderMarkdown', () => {
5454

5555
expect(renderMarkdown('[example](https://sample.com){aria-label="Sample label"}', styleOptions))
5656
.toMatchInlineSnapshot(`
57-
"<p><a href=\\"https://sample.com\\" aria-label=\\"Sample label\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">example<img src=\\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\\" alt class=\\"webchat__markdown__external-link-icon\\" /></a></p>
57+
"<p><a href="https://sample.com" aria-label="Sample label" rel="noopener noreferrer" target="_blank">example<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt class="webchat__markdown__external-link-icon" /></a></p>
5858
"
5959
`);
6060
});
@@ -65,7 +65,7 @@ describe('renderMarkdown', () => {
6565

6666
expect(renderMarkdown('[example](https://sample.com){aria-label="Sample label"}', styleOptions, options))
6767
.toMatchInlineSnapshot(`
68-
"<p><a href=\\"https://sample.com\\" aria-label=\\"Sample label\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\" title=\\"Opens in a new window, external.\\">example<img src=\\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\\" alt=\\"Opens in a new window, external.\\" class=\\"webchat__markdown__external-link-icon\\" /></a></p>
68+
"<p><a href="https://sample.com" aria-label="Sample label" rel="noopener noreferrer" target="_blank" title="Opens in a new window, external.">example<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" alt="Opens in a new window, external." class="webchat__markdown__external-link-icon" /></a></p>
6969
"
7070
`);
7171
});

packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ test('supplying both audioConfig and audioInputDeviceId', () => {
135135
ponyfillFactory({});
136136

137137
expect(consoleWarns[0]).toMatchInlineSnapshot(
138-
`"botframework-webchat: \\"audioConfig\\" and \\"audioInputDeviceId\\" cannot be set at the same time; ignoring \\"audioInputDeviceId\\"."`
138+
`"botframework-webchat: "audioConfig" and "audioInputDeviceId" cannot be set at the same time; ignoring "audioInputDeviceId"."`
139139
);
140140

141141
expect(createPonyfill.mock.calls[0][0].audioConfig).toBe(audioConfig);

packages/component/src/Utils/addTargetBlankToHyperlinksMarkdown.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test('add to external links', () => {
1515
const html = markdownIt.renderer.render(updatedTree);
1616

1717
expect(html).toMatchInlineSnapshot(
18-
`"Hello, <a href=\\"https://microsoft.com/\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">Microsoft</a>!"`
18+
`"Hello, <a href="https://microsoft.com/" rel="noopener noreferrer" target="_blank">Microsoft</a>!"`
1919
);
2020
});
2121

@@ -26,7 +26,7 @@ test("don't add for hashes", () => {
2626
const updatedTree = addTargetBlankToHyperlinksMarkdown(tree);
2727
const html = markdownIt.renderer.render(updatedTree);
2828

29-
expect(html).toMatchInlineSnapshot(`"Hello, <a href=\\"#microsoft\\">Microsoft</a>!"`);
29+
expect(html).toMatchInlineSnapshot(`"Hello, <a href="#microsoft">Microsoft</a>!"`);
3030
});
3131

3232
test("don't add for searches", () => {
@@ -36,7 +36,7 @@ test("don't add for searches", () => {
3636
const updatedTree = addTargetBlankToHyperlinksMarkdown(tree);
3737
const html = markdownIt.renderer.render(updatedTree);
3838

39-
expect(html).toMatchInlineSnapshot(`"Hello, <a href=\\"?q=microsoft\\">Microsoft</a>!"`);
39+
expect(html).toMatchInlineSnapshot(`"Hello, <a href="?q=microsoft">Microsoft</a>!"`);
4040
});
4141

4242
test("don't add for cross references", () => {
@@ -46,5 +46,5 @@ test("don't add for cross references", () => {
4646
const updatedTree = addTargetBlankToHyperlinksMarkdown(tree);
4747
const html = markdownIt.renderer.render(updatedTree);
4848

49-
expect(html).toMatchInlineSnapshot(`"Hello, <a href=\\"#microsoft\\">Microsoft</a>!"`);
49+
expect(html).toMatchInlineSnapshot(`"Hello, <a href="#microsoft">Microsoft</a>!"`);
5050
});

packages/component/src/Utils/walkMarkdownTokens.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test('walk every node and add class="markdown"', () => {
1212
const actual = markdownIt.renderer.render(patchedTree);
1313

1414
expect(actual).toMatchInlineSnapshot(`
15-
"<p class=\\"markdown\\">Hello, <a href=\\"#world\\" class=\\"markdown\\">World</a class=\\"markdown\\">!</p class=\\"markdown\\">
15+
"<p class="markdown">Hello, <a href="#world" class="markdown">World</a class="markdown">!</p class="markdown">
1616
"
1717
`);
1818
});

0 commit comments

Comments
 (0)