cms/app-client/tests/unit/helpers/short-date-test.js
author ymh <ymh.work@gmail.com>
Wed, 24 Aug 2016 09:46:03 +0200
changeset 263 3deace9204de
parent 210 08ad36c693b1
permissions -rw-r--r--
pass bo_client to ember 2.8, adjust for the hack around the aupac-typeahead bug in 2.8 (c.f. https://github.com/aupac/ember-aupac-typeahead/issues/23)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
210
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     1
import { shortDate } from 'app-client/helpers/short-date';
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     2
import { module, test } from 'qunit';
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     3
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     4
module('Unit | Helper | short date');
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     5
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     6
// Replace this with your real tests.
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     7
test('it works', function(assert) {
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     8
  let result = shortDate([42]);
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     9
  assert.ok(result);
08ad36c693b1 Player design
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
    10
});