X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0f406b246f9261651b5982be71a49189349c8e3e..3a7f4250d94166111e423167275d558b48a2712f:/modules/documentCanvas/tests/utils.test.js?ds=inline diff --git a/modules/documentCanvas/tests/utils.test.js b/modules/documentCanvas/tests/utils.test.js index d25b3d3..c82e6fb 100644 --- a/modules/documentCanvas/tests/utils.test.js +++ b/modules/documentCanvas/tests/utils.test.js @@ -1,29 +1,29 @@ -define(['libs/chai', './utils.js'], function(chai, utils) { - -'use strict'; -var assert = chai.assert; - -test('open+open', function() { - assert.equal(utils.cleanUp('
\n
'), '
'); -}) - -test('close+close', function() { - assert.equal(utils.cleanUp('
\n
'), '
'); -}) - -test('close+open', function() { - assert.equal(utils.cleanUp('
\n
'), '
'); -}) - -test('bug', function() { - var txt = '\ -
\ -
Head
\ -
er 1
\ -
' - var txt2 = '
Head
er 1
'; - assert.equal(utils.cleanUp(txt), txt2); -}); - - +define(['libs/chai', './utils.js'], function(chai, utils) { + +'use strict'; +var assert = chai.assert; + +test('open+open', function() { + assert.equal(utils.cleanUp('
\n
'), '
'); +}); + +test('close+close', function() { + assert.equal(utils.cleanUp('
\n
'), '
'); +}); + +test('close+open', function() { + assert.equal(utils.cleanUp('
\n
'), '
'); +}); + +test('bug', function() { + var txt = '\ +
\ +
Head
\ +
er 1
\ +
'; + var txt2 = '
Head
er 1
'; + assert.equal(utils.cleanUp(txt), txt2); +}); + + }); \ No newline at end of file