diff options
Diffstat (limited to 'spec/frontend/ide/stores/utils_spec.js')
-rw-r--r-- | spec/frontend/ide/stores/utils_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/ide/stores/utils_spec.js b/spec/frontend/ide/stores/utils_spec.js index 8f7b8c5e311..79b6b66319e 100644 --- a/spec/frontend/ide/stores/utils_spec.js +++ b/spec/frontend/ide/stores/utils_spec.js @@ -604,7 +604,7 @@ describe('Multi-file store utils', () => { let entries; beforeEach(() => { - const img = { content: '/base64/encoded/image+' }; + const img = { content: 'png-gibberish', rawPath: 'blob:1234' }; mdFile = { path: 'path/to/some/directory/myfile.md' }; entries = { // invalid (or lack of) extensions are also supported as long as there's @@ -637,14 +637,14 @@ describe('Multi-file store utils', () => { ${'* ![img](img.png "title here")'} | ${'png'} | ${'img'} | ${'title here'} `( 'correctly transforms markdown with uncommitted images: $markdownBefore', - ({ markdownBefore, ext, imgAlt, imgTitle }) => { + ({ markdownBefore, imgAlt, imgTitle }) => { mdFile.content = markdownBefore; expect(utils.extractMarkdownImagesFromEntries(mdFile, entries)).toEqual({ content: '* {{gl_md_img_1}}', images: { '{{gl_md_img_1}}': { - src: `data:image/${ext};base64,/base64/encoded/image+`, + src: 'blob:1234', alt: imgAlt, title: imgTitle, }, |