diff options
Diffstat (limited to 'spec/frontend/behaviors/copy_as_gfm_spec.js')
-rw-r--r-- | spec/frontend/behaviors/copy_as_gfm_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/frontend/behaviors/copy_as_gfm_spec.js b/spec/frontend/behaviors/copy_as_gfm_spec.js index 33af9bc135e..46d4451c941 100644 --- a/spec/frontend/behaviors/copy_as_gfm_spec.js +++ b/spec/frontend/behaviors/copy_as_gfm_spec.js @@ -123,4 +123,14 @@ describe('CopyAsGFM', () => { }); }); }); + + describe('CopyAsGFM.quoted', () => { + const sampleGFM = '* List 1\n* List 2\n\n`Some code`'; + + it('adds quote char `> ` to each line', done => { + const expectedQuotedGFM = '> * List 1\n> * List 2\n> \n> `Some code`'; + expect(CopyAsGFM.quoted(sampleGFM)).toEqual(expectedQuotedGFM); + done(); + }); + }); }); |