@sprucelabs/spruce-test-fixtures 49.0.39 → 49.0.42

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 +5 -5
@@ -36,8 +36,8 @@ const crypto_1 = require("crypto");
36
36
  const mercury_client_1 = require("@sprucelabs/mercury-client");
37
37
  const schema_1 = require("@sprucelabs/schema");
38
38
  const spruce_core_schemas_1 = require("@sprucelabs/spruce-core-schemas");
39
- const test_1 = require("@sprucelabs/test");
40
39
  const test_utils_1 = require("@sprucelabs/test-utils");
40
+ const test_utils_2 = require("@sprucelabs/test-utils");
41
41
  const constants_1 = require("../../../tests/constants");
42
42
  const fake_1 = __importStar(require("../../../tests/decorators/fake"));
43
43
  const AbstractFakeDecoratorTest_1 = __importDefault(require("../../support/AbstractFakeDecoratorTest"));
@@ -51,19 +51,19 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
51
51
  }
52
52
  static throwsWhenInvalidPhone() {
53
53
  //@ts-ignore
54
- test_1.assert.doesThrow(() => fake_1.default.login((0, test_utils_1.generateId)()));
54
+ test_utils_1.assert.doesThrow(() => fake_1.default.login((0, test_utils_2.generateId)()));
55
55
  }
56
56
  static async fakingLoginSetsRequireLocalListeners() {
57
57
  await this.fakeLogin(constants_1.DEMO_NUMBER);
58
- test_1.assert.isTrue(mercury_client_1.MercuryTestClient.getShouldRequireLocalListeners());
58
+ test_utils_1.assert.isTrue(mercury_client_1.MercuryTestClient.getShouldRequireLocalListeners());
59
59
  }
60
60
  static async setsOwnerToClass() {
61
61
  const auth = await this.fakeLoginAndGetAuth();
62
- test_1.assert.isEqualDeep(this.fakedPerson, auth.person);
62
+ test_utils_1.assert.isEqualDeep(this.fakedPerson, auth.person);
63
63
  }
64
64
  static async getPersonThrowsWithoutPersonId() {
65
65
  await this.fakeLogin();
66
- await test_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('get-person::v2020_12_25', {
66
+ await test_utils_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('get-person::v2020_12_25', {
67
67
  target: {},
68
68
  }));
69
69
  }
@@ -74,58 +74,58 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
74
74
  personId: this.fakedPerson.id,
75
75
  },
76
76
  });
77
- test_1.assert.isEqualDeep(person, this.fakedPerson);
77
+ test_utils_1.assert.isEqualDeep(person, this.fakedPerson);
78
78
  }
79
79
  static async getPersonThrowsWithBadId() {
80
80
  await this.fakeLogin();
81
- const err = await test_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('get-person::v2020_12_25', {
81
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('get-person::v2020_12_25', {
82
82
  target: {
83
- personId: (0, test_utils_1.generateId)(),
83
+ personId: (0, test_utils_2.generateId)(),
84
84
  },
85
85
  }));
86
- test_utils_1.errorAssert.assertError(err, 'INVALID_TARGET');
86
+ test_utils_2.errorAssert.assertError(err, 'INVALID_TARGET');
87
87
  }
88
88
  static async fakingFailWithMissingParams() {
89
89
  //@ts-ignore
90
- const err = test_1.assert.doesThrow(() => (0, fake_1.default)());
91
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
90
+ const err = test_utils_1.assert.doesThrow(() => (0, fake_1.default)());
91
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
92
92
  parameters: ['target', 'total'],
93
93
  });
94
94
  }
95
95
  static async failsWithoutOwner() {
96
96
  this.fakedPerson = null;
97
- await test_1.assert.doesThrowAsync(() => this.fakeRecords('organizations', 1), 'faker.login');
97
+ await test_utils_1.assert.doesThrowAsync(() => this.fakeRecords('organizations', 1), 'faker.login');
98
98
  }
99
99
  static async seedsOrg(total) {
100
100
  await this.fakeLoginAndRecords('organizations', total);
101
- test_1.assert.isLength(this.fakedOrganizations, total);
101
+ test_utils_1.assert.isLength(this.fakedOrganizations, total);
102
102
  }
103
103
  static async fakesGetOrganization(orgIdx) {
104
104
  await this.fakeLoginAndRecords('organizations', 2);
105
105
  const orgId = this.fakedOrganizations[orgIdx].id;
106
106
  const organization = await this.emitGetOrganization(orgId);
107
- test_1.assert.isEqualDeep(this.fakedOrganizations[orgIdx], organization);
107
+ test_utils_1.assert.isEqualDeep(this.fakedOrganizations[orgIdx], organization);
108
108
  }
109
109
  static async gettingOrgThrowsWithBadOrgId() {
110
110
  await this.fakeLoginAndRecords('organizations', 1);
111
- const err = await test_1.assert.doesThrowAsync(() => this.emitGetOrganization((0, test_utils_1.generateId)()));
112
- test_utils_1.errorAssert.assertError(err, 'INVALID_TARGET');
111
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.emitGetOrganization((0, test_utils_2.generateId)()));
112
+ test_utils_2.errorAssert.assertError(err, 'INVALID_TARGET');
113
113
  }
114
114
  static async fakingOrgsMoreThanOnceStacks() {
115
115
  await this.fakeLoginAndRecords('organizations', 1);
116
116
  await this.fakeRecords('organizations', 1);
117
- test_1.assert.isLength(this.fakedOrganizations, 2);
117
+ test_utils_1.assert.isLength(this.fakedOrganizations, 2);
118
118
  }
119
119
  static async fakesListOrgsAndReturnsNewestFirst() {
120
120
  await this.fakeLogin();
121
121
  const first = await this.seedAndGetNewestOrganization();
122
122
  const second = await this.seedAndGetNewestOrganization();
123
- test_1.assert.isNotEqual(first.id, second.id);
123
+ test_utils_1.assert.isNotEqual(first.id, second.id);
124
124
  const third = await this.seedAndGetNewestOrganization();
125
125
  const organizations = await this.listOrganizations();
126
126
  const expected = [third, second, first];
127
- test_1.assert.isEqualDeep(organizations, expected);
128
- test_1.assert.isEqualDeep(this.fakedOrganizations, expected);
127
+ test_utils_1.assert.isEqualDeep(organizations, expected);
128
+ test_utils_1.assert.isEqualDeep(this.fakedOrganizations, expected);
129
129
  }
130
130
  static async listOrgsHonorsLimit(limit) {
131
131
  const orgs = await this.fakeLoginAndListOrgs({
@@ -133,44 +133,44 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
133
133
  pageSize: limit,
134
134
  },
135
135
  });
136
- test_1.assert.isLength(orgs, limit);
136
+ test_utils_1.assert.isLength(orgs, limit);
137
137
  }
138
138
  static async canGetLatestOrgWithScope() {
139
139
  await this.fakeLoginAndRecords('organizations', 5);
140
140
  const org = await this.views.getScope().getCurrentOrganization();
141
- test_1.assert.isEqualDeep(org, this.fakedOrganizations[0]);
141
+ test_utils_1.assert.isEqualDeep(org, this.fakedOrganizations[0]);
142
142
  }
143
143
  static async seedingLocationSeedsOneOrg(totalLocations) {
144
144
  await this.fakeLoginAndRecords('locations', totalLocations);
145
- test_1.assert.isLength(this.fakedOrganizations, 1);
145
+ test_utils_1.assert.isLength(this.fakedOrganizations, 1);
146
146
  }
147
147
  static async seedsGoodLocation(total) {
148
148
  await this.fakeLoginAndRecords('locations', total);
149
- test_1.assert.isLength(this.fakedLocations, total);
149
+ test_utils_1.assert.isLength(this.fakedLocations, total);
150
150
  }
151
151
  static async sortsLocationsNewestFirst() {
152
152
  await this.fakeLogin();
153
153
  const first = await this.seedAndGetNewestLocation();
154
154
  const second = await this.seedAndGetNewestLocation();
155
- test_1.assert.isNotEqual(first.id, second.id);
155
+ test_utils_1.assert.isNotEqual(first.id, second.id);
156
156
  const third = await this.seedAndGetNewestLocation();
157
157
  const expected = [third, second, first];
158
- test_1.assert.isEqualDeep(this.fakedLocations, expected);
158
+ test_utils_1.assert.isEqualDeep(this.fakedLocations, expected);
159
159
  }
160
160
  static async canGetLocationFromScope() {
161
161
  await this.fakeLoginAndRecords('locations', 10);
162
162
  const location = await this.views.getScope().getCurrentLocation();
163
- test_1.assert.isEqualDeep(location, this.fakedLocations[0]);
163
+ test_utils_1.assert.isEqualDeep(location, this.fakedLocations[0]);
164
164
  }
165
165
  static async fakingLoginsFakesRoles() {
166
166
  await this.fakeLogin();
167
- test_1.assert.isLength(this.fakedRoles, 0);
167
+ test_utils_1.assert.isLength(this.fakedRoles, 0);
168
168
  }
169
169
  static async fakingOrgFakesRoles() {
170
170
  await this.fakeLoginAndRecords('organizations', 2);
171
171
  const expected = spruce_core_schemas_1.BASE_ROLES_WITH_META;
172
172
  for (const { slug, name } of expected) {
173
- test_1.assert.doesInclude(this.fakedRoles, {
173
+ test_utils_1.assert.doesInclude(this.fakedRoles, {
174
174
  base: slug,
175
175
  name: `Faked ${name}`,
176
176
  organizationId: this.fakedOrganizations[0].id,
@@ -179,11 +179,11 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
179
179
  }
180
180
  static async listRolesReturnsFakedRoles() {
181
181
  const roles = await this.fakeLoginAndListRoles(0);
182
- test_1.assert.isEqualDeep(roles, this.fakedRoles.filter((r) => r.organizationId === this.fakedOrganizations[0].id));
182
+ test_utils_1.assert.isEqualDeep(roles, this.fakedRoles.filter((r) => r.organizationId === this.fakedOrganizations[0].id));
183
183
  }
184
184
  static async listRolesHonorsOrgId() {
185
185
  const roles = await this.fakeLoginAndListRoles(1);
186
- test_1.assert.isEqualDeep(roles, this.fakedRoles.filter((r) => r.organizationId === this.fakedOrganizations[1].id));
186
+ test_utils_1.assert.isEqualDeep(roles, this.fakedRoles.filter((r) => r.organizationId === this.fakedOrganizations[1].id));
187
187
  }
188
188
  static async listRolesForPersonWithoutTargetingOrgReturnsAllRolesForPerson() {
189
189
  const { personId, organizationId } = await this.createMultipleOrgsAndAddOwnerAdditionalTeammateRoleAtRandomOrg();
@@ -193,7 +193,7 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
193
193
  roleBase: 'teammate',
194
194
  });
195
195
  const [{ roles }] = await this.listRolesForPerson(personId);
196
- test_1.assert.isEqualDeep(roles.sort((a, b) => (a.id > b.id ? 1 : -1)), this.fakedRoles
196
+ test_utils_1.assert.isEqualDeep(roles.sort((a, b) => (a.id > b.id ? 1 : -1)), this.fakedRoles
197
197
  .filter((r) => r.base === 'owner' ||
198
198
  (r.base === 'teammate' && r.organizationId === organizationId))
199
199
  .sort((a, b) => (a.id > b.id ? 1 : -1)));
@@ -205,13 +205,13 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
205
205
  const fakedProp =
206
206
  //@ts-ignore
207
207
  this[(0, fake_1.fakeTargetToPropName)(target)];
208
- test_1.assert.isLength(fakedProp, total);
208
+ test_utils_1.assert.isLength(fakedProp, total);
209
209
  const people = await this.people.listPeople({
210
210
  locationId: (_a = this.fakedLocations[0]) === null || _a === void 0 ? void 0 : _a.id,
211
211
  roleBases: [(0, fake_1.pluralToSingular)(target)],
212
212
  organizationId: (_b = this.fakedOrganizations[0]) === null || _b === void 0 ? void 0 : _b.id,
213
213
  });
214
- test_1.assert.isEqualDeep(fakedProp, people);
214
+ test_utils_1.assert.isEqualDeep(fakedProp, people);
215
215
  }
216
216
  static async canLoginAsPersonAndGetThemBack(phone) {
217
217
  await this.fakeLogin();
@@ -226,18 +226,18 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
226
226
  pin: '234',
227
227
  },
228
228
  });
229
- test_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(phone));
230
- test_1.assert.isEqualDeep(this.fakedPeople, [this.fakedPerson, person]);
229
+ test_utils_1.assert.isEqual(person.phone, (0, schema_1.formatPhoneNumber)(phone));
230
+ test_utils_1.assert.isEqualDeep(this.fakedPeople, [this.fakedPerson, person]);
231
231
  }
232
232
  static async sendingBadChallengeThrows() {
233
233
  await this.fakeLogin();
234
- const err = await test_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('confirm-pin::v2020_12_25', {
234
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.client.emitAndFlattenResponses('confirm-pin::v2020_12_25', {
235
235
  payload: {
236
236
  challenge: '1234',
237
237
  pin: '234',
238
238
  },
239
239
  }));
240
- test_utils_1.errorAssert.assertError(err, 'INVALID_PIN');
240
+ test_utils_2.errorAssert.assertError(err, 'INVALID_PIN');
241
241
  }
242
242
  static async fakesSkillLifecycleEvents() {
243
243
  await this.client.emitAndFlattenResponses('unregister-listeners::v2020_12_25');
@@ -322,97 +322,97 @@ class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
322
322
  }
323
323
  }
324
324
  __decorate([
325
- (0, test_1.test)()
325
+ (0, test_utils_1.test)()
326
326
  ], FakeDecoratorTest, "doesNotThrowWhenMissingPhone", null);
327
327
  __decorate([
328
- (0, test_1.test)()
328
+ (0, test_utils_1.test)()
329
329
  ], FakeDecoratorTest, "throwsWhenInvalidPhone", null);
330
330
  __decorate([
331
- (0, test_1.test)()
331
+ (0, test_utils_1.test)()
332
332
  ], FakeDecoratorTest, "fakingLoginSetsRequireLocalListeners", null);
333
333
  __decorate([
334
- test_1.test.skip()
334
+ test_utils_1.test.skip()
335
335
  ], FakeDecoratorTest, "setsOwnerToClass", null);
336
336
  __decorate([
337
- (0, test_1.test)()
337
+ (0, test_utils_1.test)()
338
338
  ], FakeDecoratorTest, "getPersonThrowsWithoutPersonId", null);
339
339
  __decorate([
340
- (0, test_1.test)()
340
+ (0, test_utils_1.test)()
341
341
  ], FakeDecoratorTest, "fakesGetPerson", null);
342
342
  __decorate([
343
- (0, test_1.test)()
343
+ (0, test_utils_1.test)()
344
344
  ], FakeDecoratorTest, "getPersonThrowsWithBadId", null);
345
345
  __decorate([
346
- (0, test_1.test)()
346
+ (0, test_utils_1.test)()
347
347
  ], FakeDecoratorTest, "fakingFailWithMissingParams", null);
348
348
  __decorate([
349
- (0, test_1.test)()
349
+ (0, test_utils_1.test)()
350
350
  ], FakeDecoratorTest, "failsWithoutOwner", null);
351
351
  __decorate([
352
- (0, test_1.test)('can seed 1 org', 1),
353
- (0, test_1.test)('can seed 2 orgs', 2)
352
+ (0, test_utils_1.test)('can seed 1 org', 1),
353
+ (0, test_utils_1.test)('can seed 2 orgs', 2)
354
354
  ], FakeDecoratorTest, "seedsOrg", null);
355
355
  __decorate([
356
- (0, test_1.test)('can get 0th org', 0),
357
- (0, test_1.test)('can get 1st org', 1)
356
+ (0, test_utils_1.test)('can get 0th org', 0),
357
+ (0, test_utils_1.test)('can get 1st org', 1)
358
358
  ], FakeDecoratorTest, "fakesGetOrganization", null);
359
359
  __decorate([
360
- (0, test_1.test)()
360
+ (0, test_utils_1.test)()
361
361
  ], FakeDecoratorTest, "gettingOrgThrowsWithBadOrgId", null);
362
362
  __decorate([
363
- (0, test_1.test)()
363
+ (0, test_utils_1.test)()
364
364
  ], FakeDecoratorTest, "fakingOrgsMoreThanOnceStacks", null);
365
365
  __decorate([
366
- (0, test_1.test)()
366
+ (0, test_utils_1.test)()
367
367
  ], FakeDecoratorTest, "fakesListOrgsAndReturnsNewestFirst", null);
368
368
  __decorate([
369
- (0, test_1.test)('honors limit 1', 1),
370
- (0, test_1.test)('honors limit 2', 2)
369
+ (0, test_utils_1.test)('honors limit 1', 1),
370
+ (0, test_utils_1.test)('honors limit 2', 2)
371
371
  ], FakeDecoratorTest, "listOrgsHonorsLimit", null);
372
372
  __decorate([
373
- (0, test_1.test)()
373
+ (0, test_utils_1.test)()
374
374
  ], FakeDecoratorTest, "canGetLatestOrgWithScope", null);
375
375
  __decorate([
376
- (0, test_1.test)('seeding locations seeds 1 org 1', 1),
377
- (0, test_1.test)('seeding locations seeds 1 org 2', 2)
376
+ (0, test_utils_1.test)('seeding locations seeds 1 org 1', 1),
377
+ (0, test_utils_1.test)('seeding locations seeds 1 org 2', 2)
378
378
  ], FakeDecoratorTest, "seedingLocationSeedsOneOrg", null);
379
379
  __decorate([
380
- (0, test_1.test)('seeds expected amount of locations 1', 1),
381
- (0, test_1.test)('seeds expected amount of locations 2', 2)
380
+ (0, test_utils_1.test)('seeds expected amount of locations 1', 1),
381
+ (0, test_utils_1.test)('seeds expected amount of locations 2', 2)
382
382
  ], FakeDecoratorTest, "seedsGoodLocation", null);
383
383
  __decorate([
384
- (0, test_1.test)()
384
+ (0, test_utils_1.test)()
385
385
  ], FakeDecoratorTest, "sortsLocationsNewestFirst", null);
386
386
  __decorate([
387
- (0, test_1.test)()
387
+ (0, test_utils_1.test)()
388
388
  ], FakeDecoratorTest, "canGetLocationFromScope", null);
389
389
  __decorate([
390
- (0, test_1.test)()
390
+ (0, test_utils_1.test)()
391
391
  ], FakeDecoratorTest, "fakingLoginsFakesRoles", null);
392
392
  __decorate([
393
- (0, test_1.test)()
393
+ (0, test_utils_1.test)()
394
394
  ], FakeDecoratorTest, "fakingOrgFakesRoles", null);
395
395
  __decorate([
396
- (0, test_1.test)()
396
+ (0, test_utils_1.test)()
397
397
  ], FakeDecoratorTest, "listRolesReturnsFakedRoles", null);
398
398
  __decorate([
399
- (0, test_1.test)()
399
+ (0, test_utils_1.test)()
400
400
  ], FakeDecoratorTest, "listRolesHonorsOrgId", null);
401
401
  __decorate([
402
- (0, test_1.test)()
402
+ (0, test_utils_1.test)()
403
403
  ], FakeDecoratorTest, "listRolesForPersonWithoutTargetingOrgReturnsAllRolesForPerson", null);
404
404
  __decorate([
405
- (0, test_1.test)('can fake 1 teammate', 'teammates', 1),
406
- (0, test_1.test)('can fake 2 teammate', 'teammates', 2)
405
+ (0, test_utils_1.test)('can fake 1 teammate', 'teammates', 1),
406
+ (0, test_utils_1.test)('can fake 2 teammate', 'teammates', 2)
407
407
  ], FakeDecoratorTest, "canSyncTeammates", null);
408
408
  __decorate([
409
- (0, test_1.test)('login with number 1', constants_1.DEMO_NUMBER_DECORATORS),
410
- (0, test_1.test)('login with number 2', constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET)
409
+ (0, test_utils_1.test)('login with number 1', constants_1.DEMO_NUMBER_DECORATORS),
410
+ (0, test_utils_1.test)('login with number 2', constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET)
411
411
  ], FakeDecoratorTest, "canLoginAsPersonAndGetThemBack", null);
412
412
  __decorate([
413
- (0, test_1.test)()
413
+ (0, test_utils_1.test)()
414
414
  ], FakeDecoratorTest, "sendingBadChallengeThrows", null);
415
415
  __decorate([
416
- (0, test_1.test)()
416
+ (0, test_utils_1.test)()
417
417
  ], FakeDecoratorTest, "fakesSkillLifecycleEvents", null);
418
418
  exports.default = FakeDecoratorTest;
@@ -9,15 +9,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_1 = require("@sprucelabs/test");
12
+ const test_utils_1 = require("@sprucelabs/test-utils");
13
13
  const AbstractFakeDecoratorTest_1 = __importDefault(require("../../support/AbstractFakeDecoratorTest"));
14
14
  class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
15
15
  static async setsPersonToClass() {
16
16
  const auth = await this.fakeLoginAndGetAuth();
17
- test_1.assert.isEqualDeep(this.fakedPerson, auth.person);
17
+ test_utils_1.assert.isEqualDeep(this.fakedPerson, auth.person);
18
18
  }
19
19
  }
20
20
  __decorate([
21
- (0, test_1.test)()
21
+ (0, test_utils_1.test)()
22
22
  ], FakeDecoratorTest, "setsPersonToClass", null);
23
23
  exports.default = FakeDecoratorTest;
@@ -9,19 +9,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_1 = require("@sprucelabs/test");
12
+ const test_utils_1 = require("@sprucelabs/test-utils");
13
13
  const constants_1 = require("../../../tests/constants");
14
14
  const AbstractFakeDecoratorTest_1 = __importDefault(require("../../support/AbstractFakeDecoratorTest"));
15
15
  class FakeDecoratorTest extends AbstractFakeDecoratorTest_1.default {
16
16
  static async fakesWhoAmI() {
17
17
  const number = constants_1.DEMO_NUMBER_HIRING;
18
18
  const auth = await this.fakeLoginAndGetAuth(number);
19
- test_1.assert.doesInclude(auth.person, {
19
+ test_utils_1.assert.doesInclude(auth.person, {
20
20
  phone: number,
21
21
  });
22
22
  }
23
23
  }
24
24
  __decorate([
25
- (0, test_1.test)()
25
+ (0, test_utils_1.test)()
26
26
  ], FakeDecoratorTest, "fakesWhoAmI", null);
27
27
  exports.default = FakeDecoratorTest;
@@ -1,4 +1,4 @@
1
- import AbstractSpruceTest from '@sprucelabs/test';
1
+ import AbstractSpruceTest from '@sprucelabs/test-utils';
2
2
  export default class FakeThemeManagerTest extends AbstractSpruceTest {
3
3
  private static manager;
4
4
  protected static beforeEach(): Promise<void>;
@@ -32,10 +32,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
32
32
  return (mod && mod.__esModule) ? mod : { "default": mod };
33
33
  };
34
34
  Object.defineProperty(exports, "__esModule", { value: true });
35
- const test_1 = __importStar(require("@sprucelabs/test"));
36
- const test_utils_1 = require("@sprucelabs/test-utils");
35
+ const test_utils_1 = __importStar(require("@sprucelabs/test-utils"));
36
+ const test_utils_2 = require("@sprucelabs/test-utils");
37
37
  const FakeThemeManager_1 = __importDefault(require("../../support/FakeThemeManager"));
38
- class FakeThemeManagerTest extends test_1.default {
38
+ class FakeThemeManagerTest extends test_utils_1.default {
39
39
  static async beforeEach() {
40
40
  await super.beforeEach();
41
41
  this.manager = new FakeThemeManager_1.default();
@@ -71,23 +71,23 @@ class FakeThemeManagerTest extends test_1.default {
71
71
  }
72
72
  static async canSetTheme() {
73
73
  const set = {
74
- name: (0, test_utils_1.generateId)(),
74
+ name: (0, test_utils_2.generateId)(),
75
75
  props: {
76
76
  //@ts-ignore
77
- [test_utils_1.generateId]: (0, test_utils_1.generateId)(),
77
+ [test_utils_2.generateId]: (0, test_utils_2.generateId)(),
78
78
  },
79
79
  };
80
80
  this.manager.setTheme(set);
81
81
  this.assertThemeEquals(set);
82
82
  }
83
83
  static assertThemeEquals(expected) {
84
- test_1.assert.isEqualDeep(this.manager.getTheme(), expected);
84
+ test_utils_1.assert.isEqualDeep(this.manager.getTheme(), expected);
85
85
  }
86
86
  }
87
87
  __decorate([
88
- (0, test_1.test)()
88
+ (0, test_utils_1.test)()
89
89
  ], FakeThemeManagerTest, "comesWithThemeByDefault", null);
90
90
  __decorate([
91
- (0, test_1.test)()
91
+ (0, test_utils_1.test)()
92
92
  ], FakeThemeManagerTest, "canSetTheme", null);
93
93
  exports.default = FakeThemeManagerTest;
@@ -9,7 +9,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_1 = require("@sprucelabs/test");
12
+ const test_utils_1 = require("@sprucelabs/test-utils");
13
13
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../../tests/AbstractSpruceFixtureTest"));
14
14
  const fake_1 = __importDefault(require("../../../tests/decorators/fake"));
15
15
  const seed_1 = __importDefault(require("../../../tests/decorators/seed"));
@@ -23,11 +23,11 @@ let FakingAddingPeopleToALocationTest = class FakingAddingPeopleToALocationTest
23
23
  }
24
24
  static async passesWhenFakedOwnerIsPartOfLocation() {
25
25
  const is = await this.isPartOfLocation(this.fakedPerson.id);
26
- test_1.assert.isTrue(is);
26
+ test_utils_1.assert.isTrue(is);
27
27
  }
28
28
  static async assertIsNotPartOfLocation(personId) {
29
29
  const is = await this.isPartOfLocation(personId);
30
- test_1.assert.isFalse(is);
30
+ test_utils_1.assert.isFalse(is);
31
31
  }
32
32
  static async isPartOfLocation(personId) {
33
33
  return await this.locations.isPartOfLocation({
@@ -37,17 +37,17 @@ let FakingAddingPeopleToALocationTest = class FakingAddingPeopleToALocationTest
37
37
  }
38
38
  };
39
39
  __decorate([
40
- (0, test_1.test)(),
40
+ (0, test_utils_1.test)(),
41
41
  (0, seed_1.default)('locations', 1)
42
42
  ], FakingAddingPeopleToALocationTest, "noRolesAtLocationToStart", null);
43
43
  __decorate([
44
- (0, test_1.test)(),
44
+ (0, test_utils_1.test)(),
45
45
  (0, seed_1.default)('organizations', 1),
46
46
  (0, seed_1.default)('teammates', 1),
47
47
  (0, seed_1.default)('locations', 1)
48
48
  ], FakingAddingPeopleToALocationTest, "differenciatesBetweenOrgAndLocation", null);
49
49
  __decorate([
50
- (0, test_1.test)(),
50
+ (0, test_utils_1.test)(),
51
51
  (0, seed_1.default)('locations', 1)
52
52
  ], FakingAddingPeopleToALocationTest, "passesWhenFakedOwnerIsPartOfLocation", null);
53
53
  FakingAddingPeopleToALocationTest = __decorate([
@@ -9,13 +9,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_1 = require("@sprucelabs/test");
12
+ const test_utils_1 = require("@sprucelabs/test-utils");
13
13
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../../tests/AbstractSpruceFixtureTest"));
14
14
  const fake_1 = __importDefault(require("../../../tests/decorators/fake"));
15
15
  const seed_1 = __importDefault(require("../../../tests/decorators/seed"));
16
16
  let FakingAddingPeopleToAnOrgTest = class FakingAddingPeopleToAnOrgTest extends AbstractSpruceFixtureTest_1.default {
17
17
  static async canCreateFakingAddingPeopleToAnOrg() {
18
- test_1.assert.isLength(this.fakedOwners, 2);
18
+ test_utils_1.assert.isLength(this.fakedOwners, 2);
19
19
  }
20
20
  static async seedsDifferentTeammates() {
21
21
  this.assertSeededPeopleAreDifferent('fakedTeammates');
@@ -31,12 +31,12 @@ let FakingAddingPeopleToAnOrgTest = class FakingAddingPeopleToAnOrgTest extends
31
31
  }
32
32
  static async seedsDifferentOwners() {
33
33
  const [, person1, person2] = this.fakedOwners;
34
- test_1.assert.isNotEqual(person1.id, person2.id);
34
+ test_utils_1.assert.isNotEqual(person1.id, person2.id);
35
35
  }
36
36
  static async seedsDifferentTeammatesThenGuests() {
37
37
  const teammate = this.fakedTeammates[0];
38
38
  const guest = this.fakedGuests[0];
39
- test_1.assert.isNotEqual(teammate.id, guest.id);
39
+ test_utils_1.assert.isNotEqual(teammate.id, guest.id);
40
40
  }
41
41
  static async listingRolesHonorsOrgId() {
42
42
  const [teammate1, teammate2] = this.fakedTeammates;
@@ -69,68 +69,68 @@ let FakingAddingPeopleToAnOrgTest = class FakingAddingPeopleToAnOrgTest extends
69
69
  organizationId: orgId,
70
70
  personId: teammateId,
71
71
  });
72
- test_1.assert.isLength(roles, expected);
72
+ test_utils_1.assert.isLength(roles, expected);
73
73
  }
74
74
  static assertSeededPeopleAreDifferent(key) {
75
75
  const [person1, person2] = this[key];
76
- test_1.assert.isNotEqual(person1.id, person2.id);
76
+ test_utils_1.assert.isNotEqual(person1.id, person2.id);
77
77
  }
78
78
  };
79
79
  __decorate([
80
- (0, test_1.test)(),
80
+ (0, test_utils_1.test)(),
81
81
  (0, seed_1.default)('organizations', 1),
82
82
  (0, seed_1.default)('owners', 1)
83
83
  ], FakingAddingPeopleToAnOrgTest, "canCreateFakingAddingPeopleToAnOrg", null);
84
84
  __decorate([
85
- (0, test_1.test)(),
85
+ (0, test_utils_1.test)(),
86
86
  (0, seed_1.default)('organizations', 1),
87
87
  (0, seed_1.default)('teammates', 1),
88
88
  (0, seed_1.default)('organizations', 1),
89
89
  (0, seed_1.default)('teammates', 1)
90
90
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentTeammates", null);
91
91
  __decorate([
92
- (0, test_1.test)(),
92
+ (0, test_utils_1.test)(),
93
93
  (0, seed_1.default)('organizations', 1),
94
94
  (0, seed_1.default)('guests', 1),
95
95
  (0, seed_1.default)('organizations', 1),
96
96
  (0, seed_1.default)('guests', 1)
97
97
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentGuests", null);
98
98
  __decorate([
99
- (0, test_1.test)(),
99
+ (0, test_utils_1.test)(),
100
100
  (0, seed_1.default)('organizations', 1),
101
101
  (0, seed_1.default)('managers', 1),
102
102
  (0, seed_1.default)('organizations', 1),
103
103
  (0, seed_1.default)('managers', 1)
104
104
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentManager", null);
105
105
  __decorate([
106
- (0, test_1.test)(),
106
+ (0, test_utils_1.test)(),
107
107
  (0, seed_1.default)('organizations', 1),
108
108
  (0, seed_1.default)('groupManagers', 1),
109
109
  (0, seed_1.default)('organizations', 1),
110
110
  (0, seed_1.default)('groupManagers', 1)
111
111
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentGroupManager", null);
112
112
  __decorate([
113
- (0, test_1.test)(),
113
+ (0, test_utils_1.test)(),
114
114
  (0, seed_1.default)('organizations', 1),
115
115
  (0, seed_1.default)('owners', 1),
116
116
  (0, seed_1.default)('organizations', 1),
117
117
  (0, seed_1.default)('owners', 1)
118
118
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentOwners", null);
119
119
  __decorate([
120
- (0, test_1.test)(),
120
+ (0, test_utils_1.test)(),
121
121
  (0, seed_1.default)('organizations', 1),
122
122
  (0, seed_1.default)('teammates', 1),
123
123
  (0, seed_1.default)('guests', 1)
124
124
  ], FakingAddingPeopleToAnOrgTest, "seedsDifferentTeammatesThenGuests", null);
125
125
  __decorate([
126
- (0, test_1.test)(),
126
+ (0, test_utils_1.test)(),
127
127
  (0, seed_1.default)('organizations', 1),
128
128
  (0, seed_1.default)('teammates', 1),
129
129
  (0, seed_1.default)('organizations', 1),
130
130
  (0, seed_1.default)('teammates', 1)
131
131
  ], FakingAddingPeopleToAnOrgTest, "listingRolesHonorsOrgId", null);
132
132
  __decorate([
133
- (0, test_1.test)(),
133
+ (0, test_utils_1.test)(),
134
134
  (0, seed_1.default)('organizations', 1),
135
135
  (0, seed_1.default)('teammates', 1),
136
136
  (0, seed_1.default)('organizations', 1)
@@ -9,25 +9,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  return (mod && mod.__esModule) ? mod : { "default": mod };
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_1 = require("@sprucelabs/test");
12
+ const test_utils_1 = require("@sprucelabs/test-utils");
13
13
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../../tests/AbstractSpruceFixtureTest"));
14
14
  const fake_1 = __importDefault(require("../../../tests/decorators/fake"));
15
15
  let FakingAuthenticatorTest = class FakingAuthenticatorTest extends AbstractSpruceFixtureTest_1.default {
16
16
  static async canCreateFakingAuthenticator() {
17
17
  const auth = this.views.getAuthenticator();
18
- test_1.assert.isEqualDeep(auth.getPerson(), this.fakedPerson);
18
+ test_utils_1.assert.isEqualDeep(auth.getPerson(), this.fakedPerson);
19
19
  }
20
20
  static async setsProperSessionToken() {
21
21
  const auth = this.views.getAuthenticator();
22
22
  //@ts-ignore
23
- test_1.assert.isEqual(auth.getSessionToken(), this.fakedClient.auth.token);
23
+ test_utils_1.assert.isEqual(auth.getSessionToken(), this.fakedClient.auth.token);
24
24
  }
25
25
  };
26
26
  __decorate([
27
- (0, test_1.test)()
27
+ (0, test_utils_1.test)()
28
28
  ], FakingAuthenticatorTest, "canCreateFakingAuthenticator", null);
29
29
  __decorate([
30
- (0, test_1.test)()
30
+ (0, test_utils_1.test)()
31
31
  ], FakingAuthenticatorTest, "setsProperSessionToken", null);
32
32
  FakingAuthenticatorTest = __decorate([
33
33
  fake_1.default.login()