Modular logistics and supply chain operating system (LSOS)
JavaScript driver-appfleet-managementfreight-managementinfrastructureinventory-managementlast-mile-deliverylogisticsondemandopen-sourceorder-managementroute-optimizationsupply-chain-managementtracking-and-monitoringtransport-management-systemtransportationwarehouse-management
test: cover the verify-contact initial state
Ronald A. Richardson87a9a76a2d1e
diff --git a/console/tests/unit/controllers/auth/verify-contact-test.js b/console/tests/unit/controllers/auth/verify-contact-test.jsindex 0e701db6..0acf89d1 100644--- a/console/tests/unit/controllers/auth/verify-contact-test.js+++ b/console/tests/unit/controllers/auth/verify-contact-test.js@@ -48,7 +48,6 @@ module('Unit | Controller | auth/verify-contact', function (hooks) {const controller = this.owner.lookup('controller:auth/verify-contact');controller.model = { id: 'link_1', channel };controller.code = '123456';- controller.verified = false;this.transitions = [];Object.defineProperty(controller.router, 'transitionTo', {@@ -67,6 +66,7 @@ module('Unit | Controller | auth/verify-contact', function (hooks) {test('verifying posts the link and code and shows the verified state', async function (assert) {const controller = this.build('phone');let prevented = false;+ assert.false(controller.verified, 'nothing is verified before the link is confirmed');await controller.verify.perform({ preventDefault: () => (prevented = true) });