diff options
Diffstat (limited to 'spec/frontend/emoji/index_spec.js')
-rw-r--r-- | spec/frontend/emoji/index_spec.js | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/spec/frontend/emoji/index_spec.js b/spec/frontend/emoji/index_spec.js index 1b948cce73a..1a12bd303f1 100644 --- a/spec/frontend/emoji/index_spec.js +++ b/spec/frontend/emoji/index_spec.js @@ -134,9 +134,11 @@ describe('emoji', () => { const emojiKey = 'bomb'; const markup = glEmojiTag(emojiKey); - expect(trimText(markup)).toMatchInlineSnapshot( - `"<gl-emoji data-name=\\"bomb\\"></gl-emoji>"`, - ); + expect(trimText(markup)).toMatchInlineSnapshot(` + <gl-emoji + data-name="bomb" + /> + `); }); it('bomb emoji with sprite fallback readiness', () => { @@ -144,9 +146,12 @@ describe('emoji', () => { const markup = glEmojiTag(emojiKey, { sprite: true, }); - expect(trimText(markup)).toMatchInlineSnapshot( - `"<gl-emoji data-fallback-sprite-class=\\"emoji-bomb\\" data-name=\\"bomb\\"></gl-emoji>"`, - ); + expect(trimText(markup)).toMatchInlineSnapshot(` + <gl-emoji + data-fallback-sprite-class="emoji-bomb" + data-name="bomb" + /> + `); }); }); |