discourse/test/javascripts/controllers/preferences-second-factor-test.js.es6
David Taylor 812add18bd REFACTOR: Serve auth provider information in the site serializer.
At the moment core providers are hard-coded in Javascript, and plugin providers get added to the JS payload at compile time. This refactor means that we only ship enabled providers to the client.
2018-08-06 09:25:48 +01:00

14 lines
320 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);
});