discourse/test/javascripts/unit/controllers/preferences-second-factor-test.js
Robin Ward 445d6ba45f REFACTOR: Move qunit tests to a different directory structure
This structure is closer to how ember-cli expects tests to be placed. It
is not their final position, just the first step towards it.
2020-09-30 10:36:49 -04:00

15 lines
339 B
JavaScript

moduleFor("controller:preferences/second-factor");
QUnit.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);
}
);