| author | ymh <ymh.work@gmail.com> |
| Wed, 15 Feb 2017 22:53:52 +0100 | |
| changeset 512 | cf4653cf88f2 |
| parent 244 | d7ab83ecf737 |
| permissions | -rw-r--r-- |
|
244
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
1 |
import { isChecked } from 'app-client/helpers/is-checked'; |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
2 |
import { module, test } from 'qunit'; |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
3 |
|
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
4 |
module('Unit | Helper | is checked'); |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
5 |
|
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
6 |
// Replace this with your real tests. |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
7 |
test('it works', function(assert) { |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
8 |
let result = isChecked([42]); |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
9 |
assert.ok(result); |
|
d7ab83ecf737
Checked/indeterminate states with /langues endpoint checkboxes
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff
changeset
|
10 |
}); |