| author | ymh <ymh.work@gmail.com> |
| Sat, 06 Aug 2016 21:29:33 +0700 | |
| changeset 261 | 02e2396bcbbc |
| 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 |
}); |