@sprucelabs/spruce-test-fixtures 49.0.40 → 49.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/build/__tests__/behavioral/CanUseStoresSetupInBeforeEach.test.js +5 -5
  2. package/build/__tests__/behavioral/DatabaseFixture.test.d.ts +1 -1
  3. package/build/__tests__/behavioral/DatabaseFixture.test.js +7 -7
  4. package/build/__tests__/behavioral/DbResetsAsExpected.test.js +4 -4
  5. package/build/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +18 -18
  6. package/build/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +3 -3
  7. package/build/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +5 -5
  8. package/build/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +9 -9
  9. package/build/__tests__/behavioral/FakingEventResponses.test.js +15 -15
  10. package/build/__tests__/behavioral/FixtureFactory.test.d.ts +1 -1
  11. package/build/__tests__/behavioral/FixtureFactory.test.js +14 -14
  12. package/build/__tests__/behavioral/LocationFixture.test.js +17 -17
  13. package/build/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +11 -11
  14. package/build/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +3 -3
  15. package/build/__tests__/behavioral/MercuryFixture.test.js +28 -28
  16. package/build/__tests__/behavioral/OrganizationFixture.test.js +50 -50
  17. package/build/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +3 -3
  18. package/build/__tests__/behavioral/PersonFixture.test.d.ts +1 -1
  19. package/build/__tests__/behavioral/PersonFixture.test.js +37 -37
  20. package/build/__tests__/behavioral/PhoneNumberIncrementor.test.js +22 -22
  21. package/build/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +5 -5
  22. package/build/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +3 -3
  23. package/build/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +5 -5
  24. package/build/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +9 -9
  25. package/build/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +4 -4
  26. package/build/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +2 -2
  27. package/build/__tests__/behavioral/RoleFixture.test.js +15 -15
  28. package/build/__tests__/behavioral/SeedingData.test.js +43 -43
  29. package/build/__tests__/behavioral/SkillFixture.test.js +22 -22
  30. package/build/__tests__/behavioral/StoreFixture.test.d.ts +1 -1
  31. package/build/__tests__/behavioral/StoreFixture.test.js +20 -20
  32. package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +11 -11
  33. package/build/__tests__/behavioral/faking/FakeDecorator.test.js +74 -74
  34. package/build/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +3 -3
  35. package/build/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +3 -3
  36. package/build/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +1 -1
  37. package/build/__tests__/behavioral/faking/FakeThemeManager.test.js +8 -8
  38. package/build/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +6 -6
  39. package/build/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +15 -15
  40. package/build/__tests__/behavioral/faking/FakingAuthenticator.test.js +5 -5
  41. package/build/__tests__/behavioral/faking/FakingInBeforeEach.test.js +5 -5
  42. package/build/__tests__/behavioral/faking/FakingRoleEvents.test.js +19 -19
  43. package/build/__tests__/behavioral/faking/FakingSkillEvents.test.js +41 -41
  44. package/build/__tests__/behavioral/faking/UpdatePerson.test.js +5 -5
  45. package/build/__tests__/behavioral/faking/UsingFakeDecorators.test.js +60 -60
  46. package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +1 -1
  47. package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +4 -4
  48. package/build/__tests__/behavioral/faking/WhoAmI.test.js +12 -12
  49. package/build/__tests__/behavioral/maps/SpyingMapUtil.test.js +17 -17
  50. package/build/__tests__/behavioral/seeding/UsingDecorators.test.js +54 -54
  51. package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +16 -16
  52. package/build/__tests__/behavioral/views/CheckingPermissions.test.js +30 -30
  53. package/build/__tests__/behavioral/views/FakingSkillViewControllers.test.js +8 -8
  54. package/build/__tests__/behavioral/views/Routing.test.js +30 -30
  55. package/build/__tests__/behavioral/views/TestingScope.test.js +10 -10
  56. package/build/__tests__/behavioral/views/ViewFixture.test.js +107 -107
  57. package/build/__tests__/behavioral/views/WorkingWithTimezones.test.js +10 -10
  58. package/build/__tests__/support/AbstractFakeDecoratorTest.js +4 -4
  59. package/build/esm/__tests__/behavioral/CanUseStoresSetupInBeforeEach.test.js +1 -1
  60. package/build/esm/__tests__/behavioral/DatabaseFixture.test.d.ts +1 -1
  61. package/build/esm/__tests__/behavioral/DatabaseFixture.test.js +1 -1
  62. package/build/esm/__tests__/behavioral/DbResetsAsExpected.test.js +1 -1
  63. package/build/esm/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +1 -1
  64. package/build/esm/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +1 -1
  65. package/build/esm/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +1 -1
  66. package/build/esm/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +1 -1
  67. package/build/esm/__tests__/behavioral/FakingEventResponses.test.js +1 -1
  68. package/build/esm/__tests__/behavioral/FixtureFactory.test.d.ts +1 -1
  69. package/build/esm/__tests__/behavioral/FixtureFactory.test.js +1 -1
  70. package/build/esm/__tests__/behavioral/LocationFixture.test.js +1 -1
  71. package/build/esm/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +1 -1
  72. package/build/esm/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +1 -1
  73. package/build/esm/__tests__/behavioral/MercuryFixture.test.js +1 -1
  74. package/build/esm/__tests__/behavioral/OrganizationFixture.test.js +1 -1
  75. package/build/esm/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +1 -1
  76. package/build/esm/__tests__/behavioral/PersonFixture.test.d.ts +1 -1
  77. package/build/esm/__tests__/behavioral/PersonFixture.test.js +1 -1
  78. package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.js +1 -1
  79. package/build/esm/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +1 -1
  80. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +1 -1
  81. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +1 -1
  82. package/build/esm/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +1 -1
  83. package/build/esm/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +1 -1
  84. package/build/esm/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +1 -1
  85. package/build/esm/__tests__/behavioral/RoleFixture.test.js +1 -1
  86. package/build/esm/__tests__/behavioral/SeedingData.test.js +1 -1
  87. package/build/esm/__tests__/behavioral/SkillFixture.test.js +1 -1
  88. package/build/esm/__tests__/behavioral/StoreFixture.test.d.ts +1 -1
  89. package/build/esm/__tests__/behavioral/StoreFixture.test.js +1 -1
  90. package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +1 -1
  91. package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.js +1 -1
  92. package/build/esm/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +1 -1
  93. package/build/esm/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +1 -1
  94. package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +1 -1
  95. package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.js +1 -1
  96. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +1 -1
  97. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +1 -1
  98. package/build/esm/__tests__/behavioral/faking/FakingAuthenticator.test.js +1 -1
  99. package/build/esm/__tests__/behavioral/faking/FakingInBeforeEach.test.js +1 -1
  100. package/build/esm/__tests__/behavioral/faking/FakingRoleEvents.test.js +1 -1
  101. package/build/esm/__tests__/behavioral/faking/FakingSkillEvents.test.js +1 -1
  102. package/build/esm/__tests__/behavioral/faking/UpdatePerson.test.js +1 -1
  103. package/build/esm/__tests__/behavioral/faking/UsingFakeDecorators.test.js +1 -1
  104. package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +1 -1
  105. package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +1 -1
  106. package/build/esm/__tests__/behavioral/faking/WhoAmI.test.js +1 -1
  107. package/build/esm/__tests__/behavioral/maps/SpyingMapUtil.test.js +1 -1
  108. package/build/esm/__tests__/behavioral/seeding/UsingDecorators.test.js +1 -1
  109. package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +1 -1
  110. package/build/esm/__tests__/behavioral/views/CheckingPermissions.test.js +1 -1
  111. package/build/esm/__tests__/behavioral/views/FakingSkillViewControllers.test.js +1 -1
  112. package/build/esm/__tests__/behavioral/views/Routing.test.js +1 -1
  113. package/build/esm/__tests__/behavioral/views/TestingScope.test.js +1 -1
  114. package/build/esm/__tests__/behavioral/views/ViewFixture.test.js +1 -1
  115. package/build/esm/__tests__/behavioral/views/WorkingWithTimezones.test.js +1 -1
  116. package/build/esm/__tests__/support/AbstractFakeDecoratorTest.js +1 -1
  117. package/build/esm/tests/AbstractSpruceFixtureTest.js +1 -1
  118. package/build/esm/tests/SpyAuthorizer.js +1 -1
  119. package/build/esm/tests/decorators/fake.js +1 -1
  120. package/build/esm/tests/decorators/install.js +1 -1
  121. package/build/esm/tests/decorators/login.js +1 -1
  122. package/build/esm/tests/decorators/seed.js +1 -1
  123. package/build/esm/tests/fixtures/LocationFixture.js +1 -1
  124. package/build/esm/tests/fixtures/RoleFixture.js +1 -1
  125. package/build/esm/tests/fixtures/SeedFixture.js +1 -1
  126. package/build/tests/AbstractSpruceFixtureTest.js +3 -3
  127. package/build/tests/SpyAuthorizer.js +3 -3
  128. package/build/tests/decorators/fake.js +20 -20
  129. package/build/tests/decorators/install.js +3 -3
  130. package/build/tests/decorators/login.js +4 -4
  131. package/build/tests/decorators/seed.js +2 -2
  132. package/build/tests/fixtures/LocationFixture.js +3 -3
  133. package/build/tests/fixtures/RoleFixture.js +2 -2
  134. package/build/tests/fixtures/SeedFixture.js +2 -2
  135. package/package.json +4 -4
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const mercury_core_events_1 = require("@sprucelabs/mercury-core-events");
13
13
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
14
14
  const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
15
- const test_1 = require("@sprucelabs/test");
15
+ const test_utils_1 = require("@sprucelabs/test-utils");
16
16
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
17
17
  const FixtureFactory_1 = __importDefault(require("../../tests/fixtures/FixtureFactory"));
18
18
  const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
@@ -24,20 +24,20 @@ class MercuryFixtureTest extends AbstractSpruceFixtureTest_1.default {
24
24
  static async hasDefaultContractByDefault() {
25
25
  const client = await this.fixture.connectToApi();
26
26
  //@ts-ignore
27
- test_1.assert.isTruthy(client.eventContract);
27
+ test_utils_1.assert.isTruthy(client.eventContract);
28
28
  //@ts-ignore
29
- test_1.assert.isEqual(client.eventContract, mercury_core_events_1.coreEventContracts[0]);
29
+ test_utils_1.assert.isEqual(client.eventContract, mercury_core_events_1.coreEventContracts[0]);
30
30
  }
31
31
  static async canGetMoreThanOneClient() {
32
32
  await this.fixture.connectToApi({ shouldReUseClient: false });
33
33
  await this.fixture.connectToApi({ shouldReUseClient: false });
34
34
  }
35
35
  static async canCreateMercuryFixture() {
36
- test_1.assert.isTruthy(this.fixture);
36
+ test_utils_1.assert.isTruthy(this.fixture);
37
37
  }
38
38
  static async returnsConnectedClient() {
39
39
  const client = await this.fixture.connectToApi();
40
- test_1.assert.isTrue(client.isConnected());
40
+ test_utils_1.assert.isTrue(client.isConnected());
41
41
  await client.disconnect();
42
42
  }
43
43
  static async returnsSameClientOnSecondConnect() {
@@ -46,16 +46,16 @@ class MercuryFixtureTest extends AbstractSpruceFixtureTest_1.default {
46
46
  client.__monkeyPatch = true;
47
47
  const client2 = await this.fixture.connectToApi();
48
48
  //@ts-ignore
49
- test_1.assert.isTrue(client2.__monkeyPatch);
49
+ test_utils_1.assert.isTrue(client2.__monkeyPatch);
50
50
  await client.disconnect();
51
- test_1.assert.isFalse(client2.isConnected());
51
+ test_utils_1.assert.isFalse(client2.isConnected());
52
52
  }
53
53
  static async importsContractIfLocalOneIsGenerated(sigs) {
54
54
  this.createDirWriteContractFileAndSetCwd(sigs);
55
55
  const client = await this.connectToApi();
56
56
  //@ts-ignore
57
- test_1.assert.isTruthy(client.eventContract);
58
- test_1.assert.doesInclude(
57
+ test_utils_1.assert.isTruthy(client.eventContract);
58
+ test_utils_1.assert.doesInclude(
59
59
  //@ts-ignore
60
60
  client.eventContract.eventSignatures, sigs[0].eventSignatures);
61
61
  spruce_event_utils_1.eventContractUtil.getSignatureByName(
@@ -79,26 +79,26 @@ class MercuryFixtureTest extends AbstractSpruceFixtureTest_1.default {
79
79
  return {};
80
80
  };
81
81
  const value = test();
82
- test_1.assert.isTruthy(value);
82
+ test_utils_1.assert.isTruthy(value);
83
83
  }
84
84
  static async canSetDefaultClient() {
85
- test_1.assert.isFunction(MercuryFixture_1.default.setDefaultClient);
85
+ test_utils_1.assert.isFunction(MercuryFixture_1.default.setDefaultClient);
86
86
  const client = await this.connectToApi();
87
87
  MercuryFixture_1.default.setDefaultClient(client);
88
- test_1.assert.isEqual(MercuryFixture_1.default.getDefaultClient(), client);
88
+ test_utils_1.assert.isEqual(MercuryFixture_1.default.getDefaultClient(), client);
89
89
  }
90
90
  static async allClientsGoingForwardUseThatClient() {
91
91
  const client = await this.connectToApi();
92
92
  MercuryFixture_1.default.setDefaultClient(client);
93
93
  const client2 = await this.connectToApi();
94
- test_1.assert.isEqual(client, client2);
94
+ test_utils_1.assert.isEqual(client, client2);
95
95
  }
96
96
  static async resetsDefaultClientBeforeEach() {
97
97
  const client = await this.connectToApi();
98
98
  MercuryFixture_1.default.setDefaultClient(client);
99
99
  await MercuryFixture_1.default.beforeEach(this.cwd);
100
100
  const client2 = await this.connectToApi();
101
- test_1.assert.isNotEqual(client, client2);
101
+ test_utils_1.assert.isNotEqual(client, client2);
102
102
  }
103
103
  static async canForceNewClient() {
104
104
  const client = await this.connectToApi();
@@ -106,7 +106,7 @@ class MercuryFixtureTest extends AbstractSpruceFixtureTest_1.default {
106
106
  const client2 = await this.Fixture('mercury').connectToApi({
107
107
  shouldReUseClient: false,
108
108
  });
109
- test_1.assert.isNotEqual(client, client2);
109
+ test_utils_1.assert.isNotEqual(client, client2);
110
110
  }
111
111
  static async connectToApi(options) {
112
112
  return await new FixtureFactory_1.default({ cwd: this.cwd })
@@ -124,29 +124,29 @@ class MercuryFixtureTest extends AbstractSpruceFixtureTest_1.default {
124
124
  }
125
125
  }
126
126
  __decorate([
127
- (0, test_1.test)()
127
+ (0, test_utils_1.test)()
128
128
  ], MercuryFixtureTest, "hasDefaultContractByDefault", null);
129
129
  __decorate([
130
- (0, test_1.test)()
130
+ (0, test_utils_1.test)()
131
131
  ], MercuryFixtureTest, "canGetMoreThanOneClient", null);
132
132
  __decorate([
133
- (0, test_1.test)()
133
+ (0, test_utils_1.test)()
134
134
  ], MercuryFixtureTest, "canCreateMercuryFixture", null);
135
135
  __decorate([
136
- (0, test_1.test)()
136
+ (0, test_utils_1.test)()
137
137
  ], MercuryFixtureTest, "returnsConnectedClient", null);
138
138
  __decorate([
139
- (0, test_1.test)()
139
+ (0, test_utils_1.test)()
140
140
  ], MercuryFixtureTest, "returnsSameClientOnSecondConnect", null);
141
141
  __decorate([
142
- (0, test_1.test)('auto imports signature 1', [
142
+ (0, test_utils_1.test)('auto imports signature 1', [
143
143
  {
144
144
  eventSignatures: {
145
145
  ['taco-bravo']: true,
146
146
  },
147
147
  },
148
148
  ]),
149
- (0, test_1.test)('auto imports signature 2', [
149
+ (0, test_utils_1.test)('auto imports signature 2', [
150
150
  {
151
151
  eventSignatures: {
152
152
  ['taco-bravo2']: true,
@@ -155,21 +155,21 @@ __decorate([
155
155
  ])
156
156
  ], MercuryFixtureTest, "importsContractIfLocalOneIsGenerated", null);
157
157
  __decorate([
158
- (0, test_1.test)()
158
+ (0, test_utils_1.test)()
159
159
  ], MercuryFixtureTest, "beforeEachResetsBackToSavedContract", null);
160
160
  __decorate([
161
- (0, test_1.test)()
161
+ (0, test_utils_1.test)()
162
162
  ], MercuryFixtureTest, "typesTestProperly", null);
163
163
  __decorate([
164
- (0, test_1.test)()
164
+ (0, test_utils_1.test)()
165
165
  ], MercuryFixtureTest, "canSetDefaultClient", null);
166
166
  __decorate([
167
- (0, test_1.test)()
167
+ (0, test_utils_1.test)()
168
168
  ], MercuryFixtureTest, "allClientsGoingForwardUseThatClient", null);
169
169
  __decorate([
170
- (0, test_1.test)()
170
+ (0, test_utils_1.test)()
171
171
  ], MercuryFixtureTest, "resetsDefaultClientBeforeEach", null);
172
172
  __decorate([
173
- (0, test_1.test)()
173
+ (0, test_utils_1.test)()
174
174
  ], MercuryFixtureTest, "canForceNewClient", null);
175
175
  exports.default = MercuryFixtureTest;
@@ -12,21 +12,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const crypto_1 = require("crypto");
13
13
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
14
14
  const spruce_event_utils_2 = require("@sprucelabs/spruce-event-utils");
15
- const test_1 = require("@sprucelabs/test");
16
15
  const test_utils_1 = require("@sprucelabs/test-utils");
16
+ const test_utils_2 = require("@sprucelabs/test-utils");
17
17
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
18
18
  const constants_1 = require("../../tests/constants");
19
19
  const fake_1 = __importDefault(require("../../tests/decorators/fake"));
20
20
  let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpruceFixtureTest_1.default {
21
21
  static async canCreateOrganizationFixture() {
22
- test_1.assert.isTruthy(this.organizations);
22
+ test_utils_1.assert.isTruthy(this.organizations);
23
23
  }
24
24
  static async canSeedOrg() {
25
25
  const org = await this.organizations.seedDemoOrganization({
26
26
  name: 'my org',
27
27
  });
28
- test_1.assert.isTruthy(org);
29
- test_1.assert.isEqual(org.name, 'my org');
28
+ test_utils_1.assert.isTruthy(org);
29
+ test_utils_1.assert.isEqual(org.name, 'my org');
30
30
  }
31
31
  static async orgFixtureDestroysOrgs() {
32
32
  const org = await this.Org();
@@ -48,23 +48,23 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
48
48
  organizationId: org.id,
49
49
  phone: constants_1.DEMO_NUMBER_ORGANIZATION_FIXTURE,
50
50
  });
51
- test_1.assert.isFalse(isHired);
51
+ test_utils_1.assert.isFalse(isHired);
52
52
  }
53
53
  static async updatingBadOrgTHrows() {
54
- await test_1.assert.doesThrowAsync(() => this.organizations.updateOrganization('aoeu', {}));
54
+ await test_utils_1.assert.doesThrowAsync(() => this.organizations.updateOrganization('aoeu', {}));
55
55
  }
56
56
  static async canUpdateOrg() {
57
57
  const org = await this.organizations.seedDemoOrganization({
58
58
  name: 'my org',
59
59
  phone: constants_1.DEMO_NUMBER_ORGANIZATION_FIXTURE,
60
60
  });
61
- const name = (0, test_utils_1.generateId)();
61
+ const name = (0, test_utils_2.generateId)();
62
62
  await this.organizations.updateOrganization(org.id, {
63
63
  name,
64
64
  phone: constants_1.DEMO_NUMBER_ORGANIZATION_FIXTURE,
65
65
  });
66
66
  const updated = await this.organizations.getOrganizationById(org.id);
67
- test_1.assert.isEqual(updated.name, name);
67
+ test_utils_1.assert.isEqual(updated.name, name);
68
68
  }
69
69
  static async canUpdateOrgAddress() {
70
70
  const org = await this.organizations.seedDemoOrganization({
@@ -72,10 +72,10 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
72
72
  phone: constants_1.DEMO_NUMBER_ORGANIZATION_FIXTURE,
73
73
  });
74
74
  let address = {
75
- city: (0, test_utils_1.generateId)(),
76
- country: (0, test_utils_1.generateId)(),
77
- province: (0, test_utils_1.generateId)(),
78
- street1: (0, test_utils_1.generateId)(),
75
+ city: (0, test_utils_2.generateId)(),
76
+ country: (0, test_utils_2.generateId)(),
77
+ province: (0, test_utils_2.generateId)(),
78
+ street1: (0, test_utils_2.generateId)(),
79
79
  zip: (0, crypto_1.randomInt)(44444).toString(),
80
80
  };
81
81
  await this.organizations.updateOrganization(org.id, {
@@ -83,7 +83,7 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
83
83
  phone: constants_1.DEMO_NUMBER_ORGANIZATION_FIXTURE,
84
84
  });
85
85
  const updated = await this.organizations.getOrganizationById(org.id);
86
- test_1.assert.isEqualDeep(updated.address, address);
86
+ test_utils_1.assert.isEqualDeep(updated.address, address);
87
87
  }
88
88
  static async canMakeOrgPublicAndPrivate() {
89
89
  const org = await this.organizations.seedDemoOrganization({
@@ -97,14 +97,14 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
97
97
  static async canAddPersonToOrg(base) {
98
98
  const { person, org } = await this.seedOrgAndHirePerson(base);
99
99
  const isHired = await this.isPersonPartOfOrg(person.id, org.id);
100
- test_1.assert.isTrue(isHired);
100
+ test_utils_1.assert.isTrue(isHired);
101
101
  const roles = await this.roles.listRoles({
102
102
  organizationId: org.id,
103
103
  personId: person.id,
104
104
  phone: constants_1.DEMO_NUMBER_HIRING,
105
105
  });
106
- test_1.assert.isLength(roles, 1);
107
- test_1.assert.isEqual(roles[0].base, base);
106
+ test_utils_1.assert.isLength(roles, 1);
107
+ test_utils_1.assert.isEqual(roles[0].base, base);
108
108
  }
109
109
  static async isPersonPartOfOrg(personId, orgId) {
110
110
  return await this.organizations.isPartOfOrg({
@@ -115,7 +115,7 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
115
115
  static async isNotInstalledByDefault() {
116
116
  const { skill, org } = await this.seedOrgAndSkill();
117
117
  const isInstalled = await this.organizations.isSkillInstalled(skill.id, org.id);
118
- test_1.assert.isFalse(isInstalled);
118
+ test_utils_1.assert.isFalse(isInstalled);
119
119
  }
120
120
  static async showsAsInstalled() {
121
121
  const { skill, org } = await this.seedOrgAndSkill();
@@ -124,11 +124,11 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
124
124
  }
125
125
  static async cantInstallWithBadSkill() {
126
126
  const { org } = await this.seedOrgAndSkill();
127
- const err = await test_1.assert.doesThrowAsync(() => this.organizations.installSkillsByNamespace({
127
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.organizations.installSkillsByNamespace({
128
128
  organizationId: org.id,
129
129
  namespaces: ['aoeuaoeu'],
130
130
  }));
131
- test_utils_1.errorAssert.assertError(err, 'INVALID_NAMESPACES', {
131
+ test_utils_2.errorAssert.assertError(err, 'INVALID_NAMESPACES', {
132
132
  namespaces: ['aoeuaoeu'],
133
133
  });
134
134
  }
@@ -172,14 +172,14 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
172
172
  },
173
173
  });
174
174
  const { organizations } = spruce_event_utils_2.eventResponseUtil.getFirstResponseOrThrow(results);
175
- test_1.assert.isLength(organizations, 0);
175
+ test_utils_1.assert.isLength(organizations, 0);
176
176
  //@ts-ignore
177
177
  firstFixture.destroy = () => { };
178
178
  //@ts-ignore
179
179
  secondFixture.destroy = () => { };
180
180
  }
181
181
  static async passesThroughAllFieldsToRequest() {
182
- await test_1.assert.doesThrowAsync(() => this.Fixture('organization').seedDemoOrganization({
182
+ await test_utils_1.assert.doesThrowAsync(() => this.Fixture('organization').seedDemoOrganization({
183
183
  //@ts-ignore
184
184
  waka: 'tacas',
185
185
  }));
@@ -188,14 +188,14 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
188
188
  const personFixture = this.Fixture('person');
189
189
  const orgFixture = this.Fixture('organization', { people: personFixture });
190
190
  //@ts-ignore
191
- test_1.assert.isEqual(orgFixture.people, personFixture);
191
+ test_utils_1.assert.isEqual(orgFixture.people, personFixture);
192
192
  }
193
193
  static async canSeedOrgWithNoOptions() {
194
194
  const org = await this.Fixture('organization').seedDemoOrganization();
195
- test_1.assert.isTruthy(org);
195
+ test_utils_1.assert.isTruthy(org);
196
196
  }
197
197
  static async removePersonThrowsWithBadIds() {
198
- await test_1.assert.doesThrowAsync(() => this.organizations.removePerson({
198
+ await test_utils_1.assert.doesThrowAsync(() => this.organizations.removePerson({
199
199
  phone: constants_1.DEMO_NUMBER_HIRING,
200
200
  roleBase: 'guest',
201
201
  organizationId: 'aoeu',
@@ -211,7 +211,7 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
211
211
  personId: person.id,
212
212
  });
213
213
  const isHired = await this.isPersonPartOfOrg(person.id, org.id);
214
- test_1.assert.isFalse(isHired);
214
+ test_utils_1.assert.isFalse(isHired);
215
215
  }
216
216
  static async Org() {
217
217
  return await this.organizations.seedDemoOrganization({
@@ -235,7 +235,7 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
235
235
  }
236
236
  static async assertSkillIsInstalled(skillId, orgId) {
237
237
  const isInstalled = await this.organizations.isSkillInstalled(skillId, orgId);
238
- test_1.assert.isTrue(isInstalled);
238
+ test_utils_1.assert.isTrue(isInstalled);
239
239
  }
240
240
  static async seedOrgAndSkill() {
241
241
  const skill = await this.skills.seedDemoSkill({
@@ -249,10 +249,10 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
249
249
  static async assertOrgIsPublicValue(orgId, expected) {
250
250
  const org = await this.organizations.getOrganizationById(orgId);
251
251
  if (expected) {
252
- test_1.assert.isTrue(org.isPublic);
252
+ test_utils_1.assert.isTrue(org.isPublic);
253
253
  }
254
254
  else {
255
- test_1.assert.isFalsy(org.isPublic);
255
+ test_utils_1.assert.isFalsy(org.isPublic);
256
256
  }
257
257
  }
258
258
  static async setAndAssertOrgIsPublic(orgId, isPublic) {
@@ -264,66 +264,66 @@ let OrganizationFixtureTest = class OrganizationFixtureTest extends AbstractSpru
264
264
  }
265
265
  };
266
266
  __decorate([
267
- (0, test_1.test)()
267
+ (0, test_utils_1.test)()
268
268
  ], OrganizationFixtureTest, "canCreateOrganizationFixture", null);
269
269
  __decorate([
270
- (0, test_1.test)()
270
+ (0, test_utils_1.test)()
271
271
  ], OrganizationFixtureTest, "canSeedOrg", null);
272
272
  __decorate([
273
- (0, test_1.test)()
273
+ (0, test_utils_1.test)()
274
274
  ], OrganizationFixtureTest, "orgFixtureDestroysOrgs", null);
275
275
  __decorate([
276
- (0, test_1.test)()
276
+ (0, test_utils_1.test)()
277
277
  ], OrganizationFixtureTest, "isNotPartOfOrgtoStart", null);
278
278
  __decorate([
279
- (0, test_1.test)()
279
+ (0, test_utils_1.test)()
280
280
  ], OrganizationFixtureTest, "updatingBadOrgTHrows", null);
281
281
  __decorate([
282
- (0, test_1.test)()
282
+ (0, test_utils_1.test)()
283
283
  ], OrganizationFixtureTest, "canUpdateOrg", null);
284
284
  __decorate([
285
- (0, test_1.test)()
285
+ (0, test_utils_1.test)()
286
286
  ], OrganizationFixtureTest, "canUpdateOrgAddress", null);
287
287
  __decorate([
288
- (0, test_1.test)()
288
+ (0, test_utils_1.test)()
289
289
  ], OrganizationFixtureTest, "canMakeOrgPublicAndPrivate", null);
290
290
  __decorate([
291
- (0, test_1.test)('can add as guest', 'guest'),
292
- (0, test_1.test)('can add as teammate', 'teammate')
291
+ (0, test_utils_1.test)('can add as guest', 'guest'),
292
+ (0, test_utils_1.test)('can add as teammate', 'teammate')
293
293
  ], OrganizationFixtureTest, "canAddPersonToOrg", null);
294
294
  __decorate([
295
- (0, test_1.test)()
295
+ (0, test_utils_1.test)()
296
296
  ], OrganizationFixtureTest, "isNotInstalledByDefault", null);
297
297
  __decorate([
298
- (0, test_1.test)()
298
+ (0, test_utils_1.test)()
299
299
  ], OrganizationFixtureTest, "showsAsInstalled", null);
300
300
  __decorate([
301
- (0, test_1.test)()
301
+ (0, test_utils_1.test)()
302
302
  ], OrganizationFixtureTest, "cantInstallWithBadSkill", null);
303
303
  __decorate([
304
- (0, test_1.test)()
304
+ (0, test_utils_1.test)()
305
305
  ], OrganizationFixtureTest, "canInstallWithSlug", null);
306
306
  __decorate([
307
- (0, test_1.test)()
307
+ (0, test_utils_1.test)()
308
308
  ], OrganizationFixtureTest, "canInstallSkillFromAnotherPerson", null);
309
309
  __decorate([
310
- (0, test_1.test)()
310
+ (0, test_utils_1.test)()
311
311
  ], OrganizationFixtureTest, "canDeleteAllExistingOrgs", null);
312
312
  __decorate([
313
- (0, test_1.test)()
313
+ (0, test_utils_1.test)()
314
314
  ], OrganizationFixtureTest, "passesThroughAllFieldsToRequest", null);
315
315
  __decorate([
316
- (0, test_1.test)()
316
+ (0, test_utils_1.test)()
317
317
  ], OrganizationFixtureTest, "canPassPersonFixture", null);
318
318
  __decorate([
319
- (0, test_1.test)()
319
+ (0, test_utils_1.test)()
320
320
  ], OrganizationFixtureTest, "canSeedOrgWithNoOptions", null);
321
321
  __decorate([
322
- (0, test_1.test)()
322
+ (0, test_utils_1.test)()
323
323
  ], OrganizationFixtureTest, "removePersonThrowsWithBadIds", null);
324
324
  __decorate([
325
- (0, test_1.test)('can remove guest', 'guest'),
326
- (0, test_1.test)('can remove teammate', 'teammate')
325
+ (0, test_utils_1.test)('can remove guest', 'guest'),
326
+ (0, test_utils_1.test)('can remove teammate', 'teammate')
327
327
  ], OrganizationFixtureTest, "canRemovePersonFromOrg", null);
328
328
  OrganizationFixtureTest = __decorate([
329
329
  fake_1.default.login()
@@ -7,15 +7,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
10
- const test_1 = require("@sprucelabs/test");
10
+ const test_utils_1 = require("@sprucelabs/test-utils");
11
11
  const __1 = require("../..");
12
12
  class PatchingConsoleErrorToErrorStreamTest extends __1.AbstractSpruceFixtureTest {
13
13
  static patchesConsoleError() {
14
- test_1.assert.isEqual(console.error, spruce_skill_utils_1.testLog.error);
14
+ test_utils_1.assert.isEqual(console.error, spruce_skill_utils_1.testLog.error);
15
15
  console.error('Should write to console');
16
16
  }
17
17
  }
18
18
  __decorate([
19
- (0, test_1.test)()
19
+ (0, test_utils_1.test)()
20
20
  ], PatchingConsoleErrorToErrorStreamTest, "patchesConsoleError", null);
21
21
  exports.default = PatchingConsoleErrorToErrorStreamTest;
@@ -1,4 +1,4 @@
1
- import AbstractSpruceTest from '@sprucelabs/test';
1
+ import AbstractSpruceTest from '@sprucelabs/test-utils';
2
2
  export default class PersonFixtureTest extends AbstractSpruceTest {
3
3
  private static fixture;
4
4
  protected static beforeEach(): Promise<void>;
@@ -34,14 +34,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
35
  const mercury_client_1 = require("@sprucelabs/mercury-client");
36
36
  const schema_1 = require("@sprucelabs/schema");
37
- const test_1 = __importStar(require("@sprucelabs/test"));
38
- const test_utils_1 = require("@sprucelabs/test-utils");
37
+ const test_utils_1 = __importStar(require("@sprucelabs/test-utils"));
38
+ const test_utils_2 = require("@sprucelabs/test-utils");
39
39
  const dotenv_1 = __importDefault(require("dotenv"));
40
40
  const __1 = require("../..");
41
41
  const constants_1 = require("../../tests/constants");
42
42
  const FixtureFactory_1 = __importDefault(require("../../tests/fixtures/FixtureFactory"));
43
43
  dotenv_1.default.config();
44
- class PersonFixtureTest extends test_1.default {
44
+ class PersonFixtureTest extends test_utils_1.default {
45
45
  static async beforeEach() {
46
46
  await super.beforeEach();
47
47
  this.fixture = this.Fixture();
@@ -51,55 +51,55 @@ class PersonFixtureTest extends test_1.default {
51
51
  return new FixtureFactory_1.default({ cwd: this.cwd }).Fixture('person');
52
52
  }
53
53
  static async canCreatePersonFixture() {
54
- test_1.assert.isTruthy(this.fixture);
54
+ test_utils_1.assert.isTruthy(this.fixture);
55
55
  }
56
56
  static async throwsWhenNoDummyNumberSetInEnv() {
57
57
  delete process.env.DEMO_NUMBER;
58
- const err = await test_1.assert.doesThrowAsync(() => this.fixture.loginAsDemoPerson());
59
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
58
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.loginAsDemoPerson());
59
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
60
60
  parameters: ['env.DEMO_NUMBER'],
61
61
  });
62
62
  }
63
63
  static async canLoginAsPerson() {
64
64
  const { person, client } = await this.fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER);
65
- test_1.assert.isTruthy(person);
66
- test_1.assert.isTruthy(client);
65
+ test_utils_1.assert.isTruthy(person);
66
+ test_utils_1.assert.isTruthy(client);
67
67
  await client.disconnect();
68
68
  }
69
69
  static async canLoginAsPersonWithEnv() {
70
70
  process.env.DEMO_NUMBER = constants_1.DEMO_NUMBER;
71
71
  const { person, client } = await this.fixture.loginAsDemoPerson();
72
- test_1.assert.isTruthy(person);
73
- test_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER));
74
- test_1.assert.isTruthy(client);
72
+ test_utils_1.assert.isTruthy(person);
73
+ test_utils_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER));
74
+ test_utils_1.assert.isTruthy(client);
75
75
  await client.disconnect();
76
76
  }
77
77
  static async canLoginWith2Numbers() {
78
78
  const { person } = await this.fixture.loginAsDemoPerson();
79
79
  const { person: person2 } = await this.fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_SECOND_LOGIN);
80
- test_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER));
81
- test_1.assert.isEqual(person2.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER_SECOND_LOGIN));
80
+ test_utils_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER));
81
+ test_utils_1.assert.isEqual(person2.phone, (0, schema_1.formatPhoneNumber)(constants_1.DEMO_NUMBER_SECOND_LOGIN));
82
82
  }
83
83
  static async loggingInWithoutNumberReturnsSameClientEveryTime() {
84
84
  const { client } = await this.fixture.loginAsDemoPerson();
85
85
  const { client: client1 } = await this.fixture.loginAsDemoPerson();
86
- test_1.assert.isEqual(client, client1);
86
+ test_utils_1.assert.isEqual(client, client1);
87
87
  }
88
88
  static async staysLoggedInAsThisPerson() {
89
89
  mercury_client_1.MercuryClientFactory.setIsTestMode(true);
90
90
  const { client } = await this.fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_SECOND_LOGIN);
91
91
  //@ts-ignore
92
92
  client.emit = () => {
93
- test_1.assert.fail('should reuse client');
93
+ test_utils_1.assert.fail('should reuse client');
94
94
  };
95
95
  const { client: client1 } = await this.fixture.loginAsDemoPerson();
96
- test_1.assert.isEqual(client, client1);
96
+ test_utils_1.assert.isEqual(client, client1);
97
97
  }
98
98
  static async canOverrideDefaultClient() {
99
99
  const { client } = await this.fixture.loginAsDemoPerson();
100
100
  __1.MercuryFixture.setDefaultClient(client);
101
101
  const { client: client2 } = await this.fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_SECOND_LOGIN);
102
- test_1.assert.isNotEqual(client, client2);
102
+ test_utils_1.assert.isNotEqual(client, client2);
103
103
  }
104
104
  static async honorsDefaultClientEvenWithoutDemoPhoneSet() {
105
105
  const phone = process.env.DEMO_NUMBER;
@@ -107,7 +107,7 @@ class PersonFixtureTest extends test_1.default {
107
107
  const { client } = await this.Fixture().loginAsDemoPerson(phone);
108
108
  __1.MercuryFixture.setDefaultClient(client);
109
109
  const { client: client2 } = await this.Fixture().loginAsDemoPerson();
110
- test_1.assert.isEqual(client, client2);
110
+ test_utils_1.assert.isEqual(client, client2);
111
111
  }
112
112
  static async listPeoplePassesThroughVars(expectedTarget, expectedPayload = {
113
113
  personIds: ['1234'],
@@ -116,7 +116,7 @@ class PersonFixtureTest extends test_1.default {
116
116
  shouldIncludePrivateFields: true,
117
117
  }) {
118
118
  mercury_client_1.MercuryClientFactory.setIsTestMode(true);
119
- test_1.assert.isFunction(this.fixture.listPeople);
119
+ test_utils_1.assert.isFunction(this.fixture.listPeople);
120
120
  const { client } = await this.fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_PERSON_FIXTURE);
121
121
  let wasHit = true;
122
122
  let passedTarget;
@@ -136,9 +136,9 @@ class PersonFixtureTest extends test_1.default {
136
136
  };
137
137
  });
138
138
  await this.fixture.listPeople(Object.assign(Object.assign({}, expectedTarget), expectedPayload));
139
- test_1.assert.isTrue(wasHit);
140
- test_1.assert.isEqualDeep(passedTarget, expectedTarget);
141
- test_1.assert.isEqualDeep(passedPayload, expectedPayload);
139
+ test_utils_1.assert.isTrue(wasHit);
140
+ test_utils_1.assert.isEqualDeep(passedTarget, expectedTarget);
141
+ test_utils_1.assert.isEqualDeep(passedPayload, expectedPayload);
142
142
  }
143
143
  static async listPeopleReturnsPeople(expectedPeople) {
144
144
  mercury_client_1.MercuryClientFactory.setIsTestMode(true);
@@ -151,46 +151,46 @@ class PersonFixtureTest extends test_1.default {
151
151
  const people = await this.fixture.listPeople({
152
152
  organizationId: '1234',
153
153
  });
154
- test_1.assert.isEqualDeep(people, expectedPeople);
154
+ test_utils_1.assert.isEqualDeep(people, expectedPeople);
155
155
  }
156
156
  }
157
157
  __decorate([
158
- (0, test_1.test)()
158
+ (0, test_utils_1.test)()
159
159
  ], PersonFixtureTest, "canCreatePersonFixture", null);
160
160
  __decorate([
161
- (0, test_1.test)()
161
+ (0, test_utils_1.test)()
162
162
  ], PersonFixtureTest, "throwsWhenNoDummyNumberSetInEnv", null);
163
163
  __decorate([
164
- (0, test_1.test)()
164
+ (0, test_utils_1.test)()
165
165
  ], PersonFixtureTest, "canLoginAsPerson", null);
166
166
  __decorate([
167
- (0, test_1.test)()
167
+ (0, test_utils_1.test)()
168
168
  ], PersonFixtureTest, "canLoginAsPersonWithEnv", null);
169
169
  __decorate([
170
- (0, test_1.test)()
170
+ (0, test_utils_1.test)()
171
171
  ], PersonFixtureTest, "canLoginWith2Numbers", null);
172
172
  __decorate([
173
- (0, test_1.test)()
173
+ (0, test_utils_1.test)()
174
174
  ], PersonFixtureTest, "loggingInWithoutNumberReturnsSameClientEveryTime", null);
175
175
  __decorate([
176
- (0, test_1.test)()
176
+ (0, test_utils_1.test)()
177
177
  ], PersonFixtureTest, "staysLoggedInAsThisPerson", null);
178
178
  __decorate([
179
- (0, test_1.test)()
179
+ (0, test_utils_1.test)()
180
180
  ], PersonFixtureTest, "canOverrideDefaultClient", null);
181
181
  __decorate([
182
- (0, test_1.test)()
182
+ (0, test_utils_1.test)()
183
183
  ], PersonFixtureTest, "honorsDefaultClientEvenWithoutDemoPhoneSet", null);
184
184
  __decorate([
185
- (0, test_1.test)('list people passes target', {
185
+ (0, test_utils_1.test)('list people passes target', {
186
186
  organizationId: '1234',
187
187
  locationId: '1234',
188
188
  }),
189
- (0, test_1.test)('list people passes target 2', {
189
+ (0, test_utils_1.test)('list people passes target 2', {
190
190
  organizationId: '5234',
191
191
  locationId: '2666',
192
192
  }),
193
- (0, test_1.test)('list people passes payload 1', {
193
+ (0, test_utils_1.test)('list people passes payload 1', {
194
194
  organizationId: '5234',
195
195
  locationId: '2666',
196
196
  }, {
@@ -201,14 +201,14 @@ __decorate([
201
201
  })
202
202
  ], PersonFixtureTest, "listPeoplePassesThroughVars", null);
203
203
  __decorate([
204
- (0, test_1.test)('returns people 1', [
204
+ (0, test_utils_1.test)('returns people 1', [
205
205
  {
206
206
  id: '1234',
207
207
  casualName: 'tay',
208
208
  dateCreated: 0,
209
209
  },
210
210
  ]),
211
- (0, test_1.test)('returns people 2', [
211
+ (0, test_utils_1.test)('returns people 2', [
212
212
  {
213
213
  id: '234234',
214
214
  casualName: 'tsaoteuh',