Uses `module()` instead of `discourseModule()`, native getters instead of `.get()`, fixes some assertions, uses the store instead of creating models directly
17 lines
425 B
JavaScript
17 lines
425 B
JavaScript
import { module, test } from "qunit";
|
|
import Session from "discourse/models/session";
|
|
import { setupTest } from "ember-qunit";
|
|
|
|
module("Unit | Model | session", function (hooks) {
|
|
setupTest(hooks);
|
|
|
|
test("highestSeenByTopic", function (assert) {
|
|
const session = Session.current();
|
|
assert.deepEqual(
|
|
session.get("highestSeenByTopic"),
|
|
{},
|
|
"by default it returns an empty object"
|
|
);
|
|
});
|
|
});
|