We used many global functions to handle tests when they should be imported like other libraries in our application. This also gets us closer to the way Ember CLI prefers our tests to be laid out.
14 lines
311 B
JavaScript
14 lines
311 B
JavaScript
import { test, module } from "qunit";
|
|
import Session from "discourse/models/session";
|
|
|
|
module("model:session");
|
|
|
|
test("highestSeenByTopic", (assert) => {
|
|
const session = Session.current();
|
|
assert.deepEqual(
|
|
session.get("highestSeenByTopic"),
|
|
{},
|
|
"by default it returns an empty object"
|
|
);
|
|
});
|