This will allow consumers to inject it using `currentUser: service()` in preparation for the removal of implicit injections in Ember 4.0. `current-user:main` is still available and will print a deprecation notice.
12 lines
335 B
JavaScript
12 lines
335 B
JavaScript
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
|
import { test } from "qunit";
|
|
|
|
acceptance("current-user", function (needs) {
|
|
needs.user();
|
|
|
|
test("currentUser has appEvents", function (assert) {
|
|
let currentUser = this.container.lookup("service:current-user");
|
|
assert.ok(currentUser.appEvents);
|
|
});
|
|
});
|