cms/app-client/tests/unit/helpers/newlines-br-test.js
author ymh <ymh.work@gmail.com>
Tue, 20 Mar 2018 15:02:24 +0100
changeset 572 190ae1dee68d
parent 502 74fba571487e
permissions -rw-r--r--
New version, update js requirements + package files.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
502
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
import { newlinesBr } from 'app-client/helpers/newlines-br';
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
import { module, test } from 'qunit';
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
module('Unit | Helper | newlines br');
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
// Replace this with your real tests.
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
test('it works', function(assert) {
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
  let result = newlinesBr([42]);
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
  assert.ok(result);
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
});
74fba571487e Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12