cms/app-client/tests/unit/helpers/array-index-test.js
author ymh <ymh.work@gmail.com>
Sat, 06 Aug 2016 21:29:33 +0700
changeset 261 02e2396bcbbc
parent 258 12c694392e8e
permissions -rw-r--r--
Migrate to ember 2.7 + correct jquery null context error + declare shim for popcorn (instead of silencing the JSHint error)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
258
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     1
import { arrayIndex } from 'app-client/helpers/array-index';
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     2
import { module, test } from 'qunit';
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     3
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     4
module('Unit | Helper | array index');
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     5
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     6
// Replace this with your real tests.
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     7
test('it works', function(assert) {
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     8
  let result = arrayIndex([42]);
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
     9
  assert.ok(result);
12c694392e8e Add topic to transcript
Chloe Laisne <chloe.laisne@gmail.com>
parents:
diff changeset
    10
});