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
384 B
JavaScript
14 lines
384 B
JavaScript
import { moduleFor } from "ember-qunit";
|
|
import { test } from "qunit";
|
|
moduleFor("controller:preferences/second-factor");
|
|
|
|
test("displayOAuthWarning when OAuth login methods are enabled", function (assert) {
|
|
const controller = this.subject({
|
|
siteSettings: {
|
|
enable_google_oauth2_logins: true,
|
|
},
|
|
});
|
|
|
|
assert.equal(controller.get("displayOAuthWarning"), true);
|
|
});
|