From d8e76a07339393aabba28ad98f2a7ca5b53d2e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Beauvais?= Date: Wed, 10 Jan 2024 14:55:41 -0800 Subject: [PATCH] 18641 More unit tests (#618) * - app version = 5.6.32 - added Amalgamation Mixin unit tests - updated some status messages (per Yui) - updated some rules (per Yui) - added more Business Table unit tests (disabled until future) - misc updates * - added missing rule to list --------- Co-authored-by: Severin Beauvais --- package-lock.json | 4 +- package.json | 2 +- .../Amalgamation/BusinessStatus.vue | 7 +- src/mixin-tester.vue | 4 +- src/mixins/amalgamation-mixin.ts | 18 +- tests/unit/BusinessStatus.spec.ts | 4 +- tests/unit/BusinessTable.spec.ts | 81 +++++- tests/unit/amalgamation-mixin.spec.ts | 251 ++++++++++++++++++ tests/unit/filing-template-mixin.spec.ts | 2 +- tests/vitest-wrapper-factory.ts | 9 +- 10 files changed, 360 insertions(+), 22 deletions(-) create mode 100644 tests/unit/amalgamation-mixin.spec.ts diff --git a/package-lock.json b/package-lock.json index f0b20b879..7352da46c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "business-create-ui", - "version": "5.6.31", + "version": "5.6.32", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "business-create-ui", - "version": "5.6.31", + "version": "5.6.32", "dependencies": { "@babel/compat-data": "^7.21.5", "@bcrs-shared-components/approval-type": "1.0.19", diff --git a/package.json b/package.json index 38609a4aa..206da0cce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "business-create-ui", - "version": "5.6.31", + "version": "5.6.32", "private": true, "appName": "Create UI", "sbcName": "SBC Common Components", diff --git a/src/components/Amalgamation/BusinessStatus.vue b/src/components/Amalgamation/BusinessStatus.vue index 5a4681c7e..5c97c48a0 100644 --- a/src/components/Amalgamation/BusinessStatus.vue +++ b/src/components/Amalgamation/BusinessStatus.vue @@ -58,16 +58,15 @@ export default class BusinessStatus extends Vue { 'Form Horizontal amalgamation. ' case AmlStatuses.ERROR_FOREIGN_UNLIMITED: - return 'A foreign corporation must not amalgamate with a limited company and continue as ' + - 'an Unlimited Liability Company.' + return 'A foreign corporation must not amalgamate with a BC Company and continue as an ' + + 'Unlimited Liability Company.' case AmlStatuses.ERROR_FOREIGN_UNLIMITED2: return 'A BC Company cannot amalgamate with an existing foreign corporation to form a BC ' + 'Unlimited Liability Company.' case AmlStatuses.ERROR_FOREIGN_UNLIMITED3: - return 'A BC Company cannot amalgamate with a foreign company to form a BC Unlimited ' + - 'Liability Company.' + return 'A BC Unlimited Liability Company cannot amalgamate with a foreign company.' case AmlStatuses.ERROR_FUTURE_EFFECTIVE_FILING: return 'This business has a future effective filing. It cannot be part of an amalgamation ' + diff --git a/src/mixin-tester.vue b/src/mixin-tester.vue index f97e3f0d9..90923023a 100644 --- a/src/mixin-tester.vue +++ b/src/mixin-tester.vue @@ -4,10 +4,10 @@