Skip to content

Modular logistics and supply chain operating system (LSOS)

test: compare verify-contact messages against the translation

Ronald A. Richardsonf5a9022cf3c2
diff --git a/console/tests/unit/controllers/auth/verify-contact-test.js b/console/tests/unit/controllers/auth/verify-contact-test.js
index 85773a04..0e701db6 100644
--- a/console/tests/unit/controllers/auth/verify-contact-test.js
+++ b/console/tests/unit/controllers/auth/verify-contact-test.js
@@ -73,7 +73,7 @@ module('Unit | Controller | auth/verify-contact', function (hooks) {
assert.true(prevented);
assert.deepEqual(this.posted, [{ path: 'auth/confirm-contact-verification', payload: { link: 'link_1', code: '123456' } }]);
assert.true(controller.verified);
- assert.deepEqual(this.notifications().successes, ['auth.verify-contact.phone-verified']);
+ assert.deepEqual(this.notifications().successes, [controller.intl.t('auth.verify-contact.phone-verified')]);
});
test('an email link reports the email as verified', async function (assert) {
@@ -81,7 +81,7 @@ module('Unit | Controller | auth/verify-contact', function (hooks) {
await controller.verify.perform();
- assert.deepEqual(this.notifications().successes, ['auth.verify-contact.email-verified']);
+ assert.deepEqual(this.notifications().successes, [controller.intl.t('auth.verify-contact.email-verified')]);
});
test('a rejected verification is reported and the page stays unverified', async function (assert) {