cms/app-client/tests/unit/helpers/if-and-test.js
author ymh <ymh.work@gmail.com>
Tue, 20 Dec 2016 01:50:35 +0100
changeset 479 e7df0b5b09b6
parent 214 9bff007eb03c
permissions -rw-r--r--
better cross browser compatibility, still pb with MS edge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
214
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     1
import { ifAnd } from 'app-client/helpers/if-and';
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     2
import { module, test } from 'qunit';
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     3
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     4
module('Unit | Helper | if and');
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     5
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     6
// Replace this with your real tests.
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     7
test('it works', function(assert) {
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     8
  let result = ifAnd([42]);
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     9
  assert.ok(result);
9bff007eb03c Reflect player-component actions on playlist-component
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
    10
});