author | ymh <ymh.work@gmail.com> |
Tue, 20 Mar 2018 15:02:40 +0100 | |
changeset 573 | 25f3d28f51b2 |
parent 465 | 9df336529b2f |
permissions | -rw-r--r-- |
465
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
import { moduleForModel, test } from 'ember-qunit'; |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
moduleForModel('discourse', 'Unit | Serializer | discourse', { |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
// Specify the other units that are required for this test. |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
needs: ['serializer:discourse'] |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
}); |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
|
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
// Replace this with your real tests. |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
test('it serializes records', function(assert) { |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
let record = this.subject(); |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
let serializedRecord = record.serialize(); |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
assert.ok(serializedRecord); |
9df336529b2f
make filter and theme visualisatiion change on filter modification
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
}); |