diff options
Diffstat (limited to 'spec/frontend/behaviors/copy_as_gfm_spec.js')
-rw-r--r-- | spec/frontend/behaviors/copy_as_gfm_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/behaviors/copy_as_gfm_spec.js b/spec/frontend/behaviors/copy_as_gfm_spec.js index 2032faa1c33..a35cf2f0b13 100644 --- a/spec/frontend/behaviors/copy_as_gfm_spec.js +++ b/spec/frontend/behaviors/copy_as_gfm_spec.js @@ -1,6 +1,8 @@ import waitForPromises from 'helpers/wait_for_promises'; import initCopyAsGFM, { CopyAsGFM } from '~/behaviors/markdown/copy_as_gfm'; +jest.mock('~/emoji'); + describe('CopyAsGFM', () => { describe('CopyAsGFM.pasteGFM', () => { let target; @@ -116,7 +118,7 @@ describe('CopyAsGFM', () => { window.getSelection = jest.fn(() => selection); await simulateCopy(); - const expectedGFM = '1. List Item1\n1. List Item2'; + const expectedGFM = '1. List Item1\n2. List Item2'; expect(clipboardData.setData).toHaveBeenCalledWith('text/x-gfm', expectedGFM); }); |