Uses `module()` instead of `discourseModule()`, native getters instead of `.get()`, fixes some assertions, uses the store instead of creating models directly
16 lines
418 B
JavaScript
16 lines
418 B
JavaScript
import { module, test } from "qunit";
|
|
import { setupTest } from "ember-qunit";
|
|
import { getOwner } from "discourse-common/lib/get-owner";
|
|
|
|
module("Unit | Model | invite", function (hooks) {
|
|
setupTest(hooks);
|
|
|
|
test("create", function (assert) {
|
|
const store = getOwner(this).lookup("service:store");
|
|
assert.ok(
|
|
store.createRecord("invite"),
|
|
"it can be created without arguments"
|
|
);
|
|
});
|
|
});
|