X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0f406b246f9261651b5982be71a49189349c8e3e..8254ff82e19d41b2a66a4549165b924084ed6a52:/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