X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0f406b246f9261651b5982be71a49189349c8e3e..3d09a2c29184336c6cd3c17d00e145e123e05293:/modules/documentCanvas/tests/utils.test.js?ds=sidebyside 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