@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
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-controllers");
13
13
  const schema_1 = require("@sprucelabs/schema");
14
14
  const spruce_event_utils_1 = 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 __1 = require("../../..");
18
18
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../../tests/AbstractSpruceFixtureTest"));
19
19
  const constants_1 = require("../../../tests/constants");
@@ -43,15 +43,15 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
43
43
  }
44
44
  static async canLogin() {
45
45
  const auth = heartwood_view_controllers_1.AuthenticatorImpl.getInstance();
46
- test_1.assert.isEqualDeep(auth.getPerson(), this.fakedPerson);
46
+ test_utils_1.assert.isEqualDeep(auth.getPerson(), this.fakedPerson);
47
47
  const { person } = await this.fixtureNoOptions.loginAsDemoPerson(constants_1.DEMO_NUMBER_VIEW_FIXTURE);
48
48
  const loggedIn = auth.getPerson();
49
- test_1.assert.isTruthy(loggedIn);
50
- test_1.assert.isEqualDeep(loggedIn, person);
49
+ test_utils_1.assert.isTruthy(loggedIn);
50
+ test_utils_1.assert.isEqualDeep(loggedIn, person);
51
51
  }
52
52
  static async loginFallsBackToDemoNumber() {
53
53
  const { person } = await this.fixtureNoOptions.loginAsDemoPerson();
54
- test_1.assert.isEqual(person.phone, DEMO_NUMBER_FORMATTED);
54
+ test_utils_1.assert.isEqual(person.phone, DEMO_NUMBER_FORMATTED);
55
55
  }
56
56
  static async canSetHeartwoodRoot() {
57
57
  const fixture = this.Fixture('view', {
@@ -61,26 +61,26 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
61
61
  });
62
62
  const factory = fixture.getFactory();
63
63
  //@ts-ignore
64
- test_1.assert.isTrue(factory.controllerMap['heartwood.root']);
64
+ test_utils_1.assert.isTrue(factory.controllerMap['heartwood.root']);
65
65
  }
66
66
  static fixturesShouldShareConnectToApiReferences() {
67
67
  const fixture1 = this.fixtureNoOptions;
68
68
  const fixture2 = this.fixtureNoOptions;
69
69
  //@ts-ignore
70
- test_1.assert.isEqual(fixture1.connectToApi, fixture2.connectToApi);
70
+ test_utils_1.assert.isEqual(fixture1.connectToApi, fixture2.connectToApi);
71
71
  }
72
72
  static canPassThroughPersonFixture() {
73
73
  const personFixture = this.Fixture('person');
74
74
  const viewFixture = this.Fixture('view', { people: personFixture });
75
75
  //@ts-ignore
76
- test_1.assert.isEqual(viewFixture.people, personFixture);
76
+ test_utils_1.assert.isEqual(viewFixture.people, personFixture);
77
77
  }
78
78
  static async feedsInScope() {
79
79
  const { vc, fixture } = this.Scope();
80
- test_1.assert.isNull(vc.loadOptions);
80
+ test_utils_1.assert.isNull(vc.loadOptions);
81
81
  await fixture.load(vc, {});
82
- test_1.assert.isTruthy(vc.loadOptions);
83
- test_1.assert.isTruthy(vc.loadOptions.scope);
82
+ test_utils_1.assert.isTruthy(vc.loadOptions);
83
+ test_utils_1.assert.isTruthy(vc.loadOptions.scope);
84
84
  }
85
85
  static async scopeCanGetAndSetOrganization() {
86
86
  var _a;
@@ -88,16 +88,16 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
88
88
  await fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_VIEW_FIXTURE);
89
89
  await fixture.load(vc);
90
90
  const scope = (_a = vc.loadOptions) === null || _a === void 0 ? void 0 : _a.scope;
91
- test_1.assert.isTruthy(scope);
91
+ test_utils_1.assert.isTruthy(scope);
92
92
  let org = await scope.getCurrentOrganization();
93
- test_1.assert.isNull(org);
93
+ test_utils_1.assert.isNull(org);
94
94
  const created = await this.organizations.seedDemoOrganization({
95
95
  name: 'Scope org',
96
96
  phone: constants_1.DEMO_NUMBER_VIEW_FIXTURE,
97
97
  });
98
98
  scope.setCurrentOrganization(created.id);
99
99
  org = await scope.getCurrentOrganization();
100
- test_1.assert.isEqualDeep(org, created);
100
+ test_utils_1.assert.isEqualDeep(org, created);
101
101
  }
102
102
  static async scopeGetsLastOrgByDefault() {
103
103
  const orgs = this.organizations;
@@ -116,7 +116,7 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
116
116
  const viewFixture = this.fixtureNoOptions;
117
117
  await viewFixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_VIEW_FIXTURE);
118
118
  const current = await viewFixture.getScope().getCurrentOrganization();
119
- test_1.assert.isEqualDeep(current, expected);
119
+ test_utils_1.assert.isEqualDeep(current, expected);
120
120
  }
121
121
  static async scopeGetsLastLocationByDefault() {
122
122
  const org = await this.organizations.seedDemoOrganization({
@@ -145,7 +145,7 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
145
145
  },
146
146
  });
147
147
  const expected = locations[0];
148
- test_1.assert.isEqualDeep(current, expected);
148
+ test_utils_1.assert.isEqualDeep(current, expected);
149
149
  }
150
150
  static async scopeCanGetAndSetLocation() {
151
151
  var _a;
@@ -153,30 +153,30 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
153
153
  const { vc, fixture } = this.Scope();
154
154
  await fixture.load(vc);
155
155
  const scope = (_a = vc.loadOptions) === null || _a === void 0 ? void 0 : _a.scope;
156
- test_1.assert.isTruthy(scope);
156
+ test_utils_1.assert.isTruthy(scope);
157
157
  let location = await scope.getCurrentLocation();
158
- test_1.assert.isNull(location);
158
+ test_utils_1.assert.isNull(location);
159
159
  const created = await this.Fixture('location').seedDemoLocation({
160
160
  name: 'Scope org',
161
161
  phone: constants_1.DEMO_NUMBER_VIEW_FIXTURE,
162
162
  });
163
163
  scope.setCurrentLocation(created.id);
164
164
  location = await scope.getCurrentLocation();
165
- test_1.assert.isEqualDeep(location, created);
165
+ test_utils_1.assert.isEqualDeep(location, created);
166
166
  }
167
167
  static async sharesPersonFixture() {
168
168
  const { fixture } = this.Scope();
169
- test_1.assert.isEqual(
169
+ test_utils_1.assert.isEqual(
170
170
  //@ts-ignore
171
171
  fixture.people,
172
172
  //@ts-ignore
173
173
  fixture.orgs.people);
174
- test_1.assert.isEqual(
174
+ test_utils_1.assert.isEqual(
175
175
  //@ts-ignore
176
176
  fixture.people,
177
177
  //@ts-ignore
178
178
  fixture.locations.people);
179
- test_1.assert.isEqual(
179
+ test_utils_1.assert.isEqual(
180
180
  //@ts-ignore
181
181
  fixture.orgs,
182
182
  //@ts-ignore
@@ -192,7 +192,7 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
192
192
  const { vc, fixture } = this.Scope();
193
193
  await fixture.load(vc);
194
194
  const current = await ((_a = vc.loadOptions) === null || _a === void 0 ? void 0 : _a.scope.getCurrentOrganization());
195
- test_1.assert.isEqualDeep(current, org);
195
+ test_utils_1.assert.isEqualDeep(current, org);
196
196
  }
197
197
  static async scopeShouldBeResetEachRun() {
198
198
  var _a;
@@ -200,7 +200,7 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
200
200
  await fixture.loginAsDemoPerson(constants_1.DEMO_NUMBER_VIEW_FIXTURE);
201
201
  await fixture.load(vc);
202
202
  const current = await ((_a = vc.loadOptions) === null || _a === void 0 ? void 0 : _a.scope.getCurrentOrganization());
203
- test_1.assert.isNull(current);
203
+ test_utils_1.assert.isNull(current);
204
204
  }
205
205
  static fixturesShareVcFactory() {
206
206
  const options = {
@@ -210,7 +210,7 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
210
210
  };
211
211
  const fixture1 = this.Fixture('view', options);
212
212
  const fixture2 = this.Fixture('view', options);
213
- test_1.assert.isEqual(fixture1.getFactory(), fixture2.getFactory());
213
+ test_utils_1.assert.isEqual(fixture1.getFactory(), fixture2.getFactory());
214
214
  }
215
215
  static async mixesInControllerMapWithLocalViews() {
216
216
  await this.bootAndRegisterSkillFromTestDir('skill');
@@ -248,20 +248,20 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
248
248
  static async fixturePatchesAlertToThrow() {
249
249
  const vc = this.MockVc();
250
250
  //@ts-ignore
251
- test_1.assert.isFunction(vc._originalAlert);
251
+ test_utils_1.assert.isFunction(vc._originalAlert);
252
252
  //@ts-ignore
253
- await test_1.assert.doesThrowAsync(() => vc.alert());
253
+ await test_utils_1.assert.doesThrowAsync(() => vc.alert());
254
254
  }
255
255
  static fixturePatchesRenderInDialogToThrow() {
256
256
  const vc = this.MockVc();
257
257
  //@ts-ignore
258
- test_1.assert.isFunction(vc._originalRenderInDialog);
258
+ test_utils_1.assert.isFunction(vc._originalRenderInDialog);
259
259
  //@ts-ignore
260
- test_1.assert.doesThrow(() => vc.renderInDialog({}));
260
+ test_utils_1.assert.doesThrow(() => vc.renderInDialog({}));
261
261
  }
262
262
  static async testRouterThrowsOnRedirect() {
263
263
  const router = this.views.getRouter();
264
- await test_1.assert.doesThrowAsync(() => router.redirect('heartwood.root'));
264
+ await test_utils_1.assert.doesThrowAsync(() => router.redirect('heartwood.root'));
265
265
  await heartwood_view_controllers_1.vcAssert.assertActionRedirects({
266
266
  action: () => router.redirect('heartwood.root'),
267
267
  router,
@@ -273,17 +273,17 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
273
273
  card: Fake_svc_1.default,
274
274
  },
275
275
  });
276
- test_1.assert.isFunction(viewFixture.getAuthenticator);
277
- test_1.assert.isEqual(viewFixture.getAuthenticator(), heartwood_view_controllers_1.AuthenticatorImpl.getInstance());
276
+ test_utils_1.assert.isFunction(viewFixture.getAuthenticator);
277
+ test_utils_1.assert.isEqual(viewFixture.getAuthenticator(), heartwood_view_controllers_1.AuthenticatorImpl.getInstance());
278
278
  }
279
279
  static activeRecordThrowsByDefault() {
280
280
  //@ts-ignore
281
- test_1.assert.isTrue(heartwood_view_controllers_1.ActiveRecordListViewController.shouldThrowOnResponseError);
281
+ test_utils_1.assert.isTrue(heartwood_view_controllers_1.ActiveRecordListViewController.shouldThrowOnResponseError);
282
282
  heartwood_view_controllers_1.ActiveRecordListViewController.setShouldThrowOnResponseError(false);
283
283
  }
284
284
  static activeRecordThrowReset() {
285
285
  //@ts-ignore
286
- test_1.assert.isTrue(heartwood_view_controllers_1.ActiveRecordListViewController.shouldThrowOnResponseError);
286
+ test_utils_1.assert.isTrue(heartwood_view_controllers_1.ActiveRecordListViewController.shouldThrowOnResponseError);
287
287
  }
288
288
  static async patchesFormsToThrow() {
289
289
  const viewFixture = this.Fixture('view', {
@@ -294,48 +294,48 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
294
294
  schema: { id: 'test', fields: {} },
295
295
  sections: [],
296
296
  }));
297
- await test_1.assert.doesThrowAsync(() => formVc.submit());
297
+ await test_utils_1.assert.doesThrowAsync(() => formVc.submit());
298
298
  }
299
299
  static async loggingInWithViewFixtureSetsProxyTokenForSkill() {
300
300
  const { client, token, generator } = await this.loginAndGetProxy();
301
- test_1.assert.isTruthy(token);
302
- test_1.assert.isTruthy(client.getProxyToken());
303
- test_1.assert.isEqual(token, client.getProxyToken());
301
+ test_utils_1.assert.isTruthy(token);
302
+ test_utils_1.assert.isTruthy(client.getProxyToken());
303
+ test_utils_1.assert.isEqual(token, client.getProxyToken());
304
304
  const token2 = await (generator === null || generator === void 0 ? void 0 : generator());
305
- test_1.assert.isEqual(token, token2);
305
+ test_utils_1.assert.isEqual(token, token2);
306
306
  const results = await client.emit('whoami::v2020_12_25');
307
307
  spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(results);
308
308
  }
309
309
  static async proxyGeneratorIsResetWhenDifferentPersonLogsIn() {
310
310
  const { token } = await this.loginAndGetProxy();
311
311
  const { token: token2 } = await this.loginAndGetProxy(constants_1.DEMO_NUMBER_VIEW_FIXTURE_2);
312
- test_1.assert.isNotEqual(token, token2);
312
+ test_utils_1.assert.isNotEqual(token, token2);
313
313
  }
314
314
  static async sameProxyAcrossFixturesWithSameNumber() {
315
315
  const { token } = await this.loginAndGetProxy();
316
316
  const { token: token2 } = await this.loginAndGetProxy();
317
- test_1.assert.isEqual(token, token2);
317
+ test_utils_1.assert.isEqual(token, token2);
318
318
  }
319
319
  static async generatorResetEachTest() {
320
320
  //@ts-ignore
321
- test_1.assert.isEqualDeep(ViewFixture_1.default.loggedInPersonProxyTokens, {});
321
+ test_utils_1.assert.isEqualDeep(ViewFixture_1.default.loggedInPersonProxyTokens, {});
322
322
  const generator = this.getProxyGenerator();
323
- test_1.assert.isFalsy(generator);
323
+ test_utils_1.assert.isFalsy(generator);
324
324
  }
325
325
  static async loggingInAsViewSetsClientForViewControllers() {
326
326
  const client = await this.loginAsDemoPerson();
327
327
  const vc = this.fixture.Controller('client', {});
328
328
  const client2 = await vc.connect();
329
- test_1.assert.isEqual(client, client2);
329
+ test_utils_1.assert.isEqual(client, client2);
330
330
  }
331
331
  static viewClientIsResetAfterEachTest() {
332
332
  //@ts-ignore
333
- test_1.assert.isFalsy(ViewFixture_1.default.viewClient);
333
+ test_utils_1.assert.isFalsy(ViewFixture_1.default.viewClient);
334
334
  }
335
335
  static async generatorIsNotVulnerableToRaceConditions() {
336
336
  const client = await this.loginAsDemoPerson();
337
337
  const generator = this.fixture.getProxyTokenGenerator();
338
- test_1.assert.isTruthy(generator);
338
+ test_utils_1.assert.isTruthy(generator);
339
339
  let hitCount = 0;
340
340
  await client.on('register-proxy-token::v2020_12_25', () => {
341
341
  hitCount++;
@@ -354,18 +354,18 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
354
354
  generator(),
355
355
  generator(),
356
356
  ]);
357
- test_1.assert.isEqual(hitCount, 1);
357
+ test_utils_1.assert.isEqual(hitCount, 1);
358
358
  }
359
359
  static async patchesConfirmToThrow() {
360
360
  const vc = this.MockVc();
361
361
  //@ts-ignore
362
- await test_1.assert.doesThrowAsync(() => vc.confirm());
362
+ await test_utils_1.assert.doesThrowAsync(() => vc.confirm());
363
363
  }
364
364
  static async setsSwipeVcJumpToSlideDuration() {
365
- test_1.assert.isEqual(heartwood_view_controllers_1.SwipeViewControllerImpl.swipeDelay, 0);
365
+ test_utils_1.assert.isEqual(heartwood_view_controllers_1.SwipeViewControllerImpl.swipeDelay, 0);
366
366
  heartwood_view_controllers_1.SwipeViewControllerImpl.swipeDelay = 100;
367
367
  await ViewFixture_1.default.beforeEach();
368
- test_1.assert.isEqual(heartwood_view_controllers_1.SwipeViewControllerImpl.swipeDelay, 0);
368
+ test_utils_1.assert.isEqual(heartwood_view_controllers_1.SwipeViewControllerImpl.swipeDelay, 0);
369
369
  }
370
370
  static canSetScope() {
371
371
  const scope = new SpyScope_1.default({
@@ -373,17 +373,17 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
373
373
  locationFixture: this.locations,
374
374
  });
375
375
  this.fixture.setScope(scope);
376
- test_1.assert.isEqual(this.fixture.getScope(), scope);
376
+ test_utils_1.assert.isEqual(this.fixture.getScope(), scope);
377
377
  }
378
378
  static async loadingAScopedToOrgVcWithoutASeededOrgThrows() {
379
379
  const vc = this.ScopedByOrgVc();
380
- const err = await test_1.assert.doesThrowAsync(() => this.fixture.load(vc));
381
- test_utils_1.errorAssert.assertError(err, 'SCOPE_REQUIREMENTS_NOT_MET');
380
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.load(vc));
381
+ test_utils_2.errorAssert.assertError(err, 'SCOPE_REQUIREMENTS_NOT_MET');
382
382
  }
383
383
  static async loadingAScopedToLocationVcWithoutASeededLocationThrows() {
384
384
  const vc = this.ScopedByLocationVc();
385
- const err = await test_1.assert.doesThrowAsync(() => this.fixture.load(vc));
386
- test_utils_1.errorAssert.assertError(err, 'SCOPE_REQUIREMENTS_NOT_MET');
385
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.load(vc));
386
+ test_utils_2.errorAssert.assertError(err, 'SCOPE_REQUIREMENTS_NOT_MET');
387
387
  }
388
388
  static async loadingWithOrgScopeAndSeededOrg() {
389
389
  const vc = this.ScopedByOrgVc();
@@ -400,29 +400,29 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
400
400
  static async setsFactoryToFormAssert() {
401
401
  this.fixture.getFactory();
402
402
  //@ts-ignore
403
- test_1.assert.isEqual(heartwood_view_controllers_1.formAssert.views, this.fixture.getFactory());
403
+ test_utils_1.assert.isEqual(heartwood_view_controllers_1.formAssert.views, this.fixture.getFactory());
404
404
  }
405
405
  static async canSetMercuryClient() {
406
406
  const client = await this.mercury.connectToApi({ shouldReUseClient: false });
407
407
  this.fixture.setClient(client);
408
408
  //@ts-ignore
409
- test_1.assert.isEqual(ViewFixture_1.default.viewClient, client);
409
+ test_utils_1.assert.isEqual(ViewFixture_1.default.viewClient, client);
410
410
  }
411
411
  static async loadOptionsComeWithFakeThemeManager() {
412
412
  const options = this.buildLoadOptions();
413
- test_1.assert.isTrue(options.themes instanceof FakeThemeManager_1.default);
413
+ test_utils_1.assert.isTrue(options.themes instanceof FakeThemeManager_1.default);
414
414
  }
415
415
  static async sameFakeThemeEachTime() {
416
416
  const options1 = this.buildLoadOptions();
417
417
  const options2 = this.buildLoadOptions();
418
- test_1.assert.isEqual(options1.themes, options2.themes);
418
+ test_utils_1.assert.isEqual(options1.themes, options2.themes);
419
419
  }
420
420
  static async sameThemesOnFixture() {
421
- test_1.assert.isEqual(this.fixture.getThemes(), this.buildLoadOptions().themes);
421
+ test_utils_1.assert.isEqual(this.fixture.getThemes(), this.buildLoadOptions().themes);
422
422
  }
423
423
  static async canSetController() {
424
424
  const factory = this.fixture.getFactory();
425
- const name = (0, test_utils_1.generateId)();
425
+ const name = (0, test_utils_2.generateId)();
426
426
  const Vc = {};
427
427
  let passedName;
428
428
  let passedVc;
@@ -431,8 +431,8 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
431
431
  passedVc = Vc;
432
432
  };
433
433
  this.fixture.setController(name, Vc);
434
- test_1.assert.isEqual(passedName, name);
435
- test_1.assert.isEqual(passedVc, Vc);
434
+ test_utils_1.assert.isEqual(passedName, name);
435
+ test_utils_1.assert.isEqual(passedVc, Vc);
436
436
  }
437
437
  static buildLoadOptions() {
438
438
  return this.router.buildLoadOptions();
@@ -480,138 +480,138 @@ let ViewFixtureTest = class ViewFixtureTest extends AbstractSpruceFixtureTest_1.
480
480
  }
481
481
  };
482
482
  __decorate([
483
- (0, test_1.test)()
483
+ (0, test_utils_1.test)()
484
484
  ], ViewFixtureTest, "canLogin", null);
485
485
  __decorate([
486
- (0, test_1.test)()
486
+ (0, test_utils_1.test)()
487
487
  ], ViewFixtureTest, "loginFallsBackToDemoNumber", null);
488
488
  __decorate([
489
- (0, test_1.test)()
489
+ (0, test_utils_1.test)()
490
490
  ], ViewFixtureTest, "canSetHeartwoodRoot", null);
491
491
  __decorate([
492
- (0, test_1.test)()
492
+ (0, test_utils_1.test)()
493
493
  ], ViewFixtureTest, "fixturesShouldShareConnectToApiReferences", null);
494
494
  __decorate([
495
- (0, test_1.test)()
495
+ (0, test_utils_1.test)()
496
496
  ], ViewFixtureTest, "canPassThroughPersonFixture", null);
497
497
  __decorate([
498
- (0, test_1.test)()
498
+ (0, test_utils_1.test)()
499
499
  ], ViewFixtureTest, "feedsInScope", null);
500
500
  __decorate([
501
- (0, test_1.test)()
501
+ (0, test_utils_1.test)()
502
502
  ], ViewFixtureTest, "scopeCanGetAndSetOrganization", null);
503
503
  __decorate([
504
- (0, test_1.test)()
504
+ (0, test_utils_1.test)()
505
505
  ], ViewFixtureTest, "scopeGetsLastOrgByDefault", null);
506
506
  __decorate([
507
- (0, test_1.test)()
507
+ (0, test_utils_1.test)()
508
508
  ], ViewFixtureTest, "scopeGetsLastLocationByDefault", null);
509
509
  __decorate([
510
- (0, test_1.test)()
510
+ (0, test_utils_1.test)()
511
511
  ], ViewFixtureTest, "scopeCanGetAndSetLocation", null);
512
512
  __decorate([
513
- (0, test_1.test)()
513
+ (0, test_utils_1.test)()
514
514
  ], ViewFixtureTest, "sharesPersonFixture", null);
515
515
  __decorate([
516
- (0, test_1.test)()
516
+ (0, test_utils_1.test)()
517
517
  ], ViewFixtureTest, "canSetScopeForCurrentOrganizationAcrossViewFixtures", null);
518
518
  __decorate([
519
- (0, test_1.test)()
519
+ (0, test_utils_1.test)()
520
520
  ], ViewFixtureTest, "scopeShouldBeResetEachRun", null);
521
521
  __decorate([
522
- (0, test_1.test)()
522
+ (0, test_utils_1.test)()
523
523
  ], ViewFixtureTest, "fixturesShareVcFactory", null);
524
524
  __decorate([
525
- (0, test_1.test)()
525
+ (0, test_utils_1.test)()
526
526
  ], ViewFixtureTest, "mixesInControllerMapWithLocalViews", null);
527
527
  __decorate([
528
- (0, test_1.test)()
528
+ (0, test_utils_1.test)()
529
529
  ], ViewFixtureTest, "fixturesContinueToMixinViewControllers", null);
530
530
  __decorate([
531
- (0, test_1.test)()
531
+ (0, test_utils_1.test)()
532
532
  ], ViewFixtureTest, "fixtureAttachesRenderCount", null);
533
533
  __decorate([
534
- (0, test_1.test)()
534
+ (0, test_utils_1.test)()
535
535
  ], ViewFixtureTest, "fixturePatchesAlertToThrow", null);
536
536
  __decorate([
537
- (0, test_1.test)()
537
+ (0, test_utils_1.test)()
538
538
  ], ViewFixtureTest, "fixturePatchesRenderInDialogToThrow", null);
539
539
  __decorate([
540
- (0, test_1.test)()
540
+ (0, test_utils_1.test)()
541
541
  ], ViewFixtureTest, "testRouterThrowsOnRedirect", null);
542
542
  __decorate([
543
- (0, test_1.test)()
543
+ (0, test_utils_1.test)()
544
544
  ], ViewFixtureTest, "canGetAuthenticatorInstance", null);
545
545
  __decorate([
546
- (0, test_1.test)()
546
+ (0, test_utils_1.test)()
547
547
  ], ViewFixtureTest, "activeRecordThrowsByDefault", null);
548
548
  __decorate([
549
- (0, test_1.test)()
549
+ (0, test_utils_1.test)()
550
550
  ], ViewFixtureTest, "activeRecordThrowReset", null);
551
551
  __decorate([
552
- test_1.test.skip()
552
+ test_utils_1.test.skip()
553
553
  ], ViewFixtureTest, "patchesFormsToThrow", null);
554
554
  __decorate([
555
- (0, test_1.test)()
555
+ (0, test_utils_1.test)()
556
556
  ], ViewFixtureTest, "loggingInWithViewFixtureSetsProxyTokenForSkill", null);
557
557
  __decorate([
558
- (0, test_1.test)()
558
+ (0, test_utils_1.test)()
559
559
  ], ViewFixtureTest, "proxyGeneratorIsResetWhenDifferentPersonLogsIn", null);
560
560
  __decorate([
561
- (0, test_1.test)()
561
+ (0, test_utils_1.test)()
562
562
  ], ViewFixtureTest, "sameProxyAcrossFixturesWithSameNumber", null);
563
563
  __decorate([
564
- (0, test_1.test)()
564
+ (0, test_utils_1.test)()
565
565
  ], ViewFixtureTest, "generatorResetEachTest", null);
566
566
  __decorate([
567
- (0, test_1.test)()
567
+ (0, test_utils_1.test)()
568
568
  ], ViewFixtureTest, "loggingInAsViewSetsClientForViewControllers", null);
569
569
  __decorate([
570
- (0, test_1.test)()
570
+ (0, test_utils_1.test)()
571
571
  ], ViewFixtureTest, "viewClientIsResetAfterEachTest", null);
572
572
  __decorate([
573
- (0, test_1.test)()
573
+ (0, test_utils_1.test)()
574
574
  ], ViewFixtureTest, "generatorIsNotVulnerableToRaceConditions", null);
575
575
  __decorate([
576
- (0, test_1.test)()
576
+ (0, test_utils_1.test)()
577
577
  ], ViewFixtureTest, "patchesConfirmToThrow", null);
578
578
  __decorate([
579
- (0, test_1.test)()
579
+ (0, test_utils_1.test)()
580
580
  ], ViewFixtureTest, "setsSwipeVcJumpToSlideDuration", null);
581
581
  __decorate([
582
- (0, test_1.test)()
582
+ (0, test_utils_1.test)()
583
583
  ], ViewFixtureTest, "canSetScope", null);
584
584
  __decorate([
585
- (0, test_1.test)()
585
+ (0, test_utils_1.test)()
586
586
  ], ViewFixtureTest, "loadingAScopedToOrgVcWithoutASeededOrgThrows", null);
587
587
  __decorate([
588
- (0, test_1.test)()
588
+ (0, test_utils_1.test)()
589
589
  ], ViewFixtureTest, "loadingAScopedToLocationVcWithoutASeededLocationThrows", null);
590
590
  __decorate([
591
- (0, test_1.test)(),
591
+ (0, test_utils_1.test)(),
592
592
  (0, __1.seed)('organizations', 1)
593
593
  ], ViewFixtureTest, "loadingWithOrgScopeAndSeededOrg", null);
594
594
  __decorate([
595
- (0, test_1.test)(),
595
+ (0, test_utils_1.test)(),
596
596
  (0, __1.seed)('locations', 1)
597
597
  ], ViewFixtureTest, "loadingWithLocationScopeAndSeededLocation", null);
598
598
  __decorate([
599
- (0, test_1.test)()
599
+ (0, test_utils_1.test)()
600
600
  ], ViewFixtureTest, "setsFactoryToFormAssert", null);
601
601
  __decorate([
602
- (0, test_1.test)()
602
+ (0, test_utils_1.test)()
603
603
  ], ViewFixtureTest, "canSetMercuryClient", null);
604
604
  __decorate([
605
- (0, test_1.test)()
605
+ (0, test_utils_1.test)()
606
606
  ], ViewFixtureTest, "loadOptionsComeWithFakeThemeManager", null);
607
607
  __decorate([
608
- (0, test_1.test)()
608
+ (0, test_utils_1.test)()
609
609
  ], ViewFixtureTest, "sameFakeThemeEachTime", null);
610
610
  __decorate([
611
- (0, test_1.test)()
611
+ (0, test_utils_1.test)()
612
612
  ], ViewFixtureTest, "sameThemesOnFixture", null);
613
613
  __decorate([
614
- (0, test_1.test)()
614
+ (0, test_utils_1.test)()
615
615
  ], ViewFixtureTest, "canSetController", null);
616
616
  ViewFixtureTest = __decorate([
617
617
  fake_1.default.login(DEMO_NUMBER_FORMATTED)
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const calendar_utils_1 = require("@sprucelabs/calendar-utils");
13
- const test_1 = require("@sprucelabs/test");
13
+ const test_utils_1 = require("@sprucelabs/test-utils");
14
14
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../../tests/AbstractSpruceFixtureTest"));
15
15
  class WorkingWithTimezonesTest extends AbstractSpruceFixtureTest_1.default {
16
16
  static async beforeEach() {
@@ -19,20 +19,20 @@ class WorkingWithTimezonesTest extends AbstractSpruceFixtureTest_1.default {
19
19
  }
20
20
  static canGetInstance() {
21
21
  const instance = this.getInstance();
22
- test_1.assert.isTrue(instance instanceof calendar_utils_1.LocaleImpl);
22
+ test_utils_1.assert.isTrue(instance instanceof calendar_utils_1.LocaleImpl);
23
23
  }
24
24
  static instanceShared() {
25
- test_1.assert.isEqual(this.getInstance(), this.getInstance());
25
+ test_utils_1.assert.isEqual(this.getInstance(), this.getInstance());
26
26
  }
27
27
  static returnsInstanceFromRouter() {
28
- test_1.assert.isEqual(this.views.getRouter().buildLoadOptions().locale, this.getInstance());
28
+ test_utils_1.assert.isEqual(this.views.getRouter().buildLoadOptions().locale, this.getInstance());
29
29
  }
30
30
  static canSetTimezoneOffset(offsetMinutes) {
31
31
  this.getInstance().setTimezoneOffsetMinutes(offsetMinutes);
32
32
  this.assertCurrentOffset(offsetMinutes);
33
33
  }
34
34
  static assertCurrentOffset(offsetMinutes) {
35
- test_1.assert.isEqual(this.getInstance().getTimezoneOffsetMinutes(), offsetMinutes);
35
+ test_utils_1.assert.isEqual(this.getInstance().getTimezoneOffsetMinutes(), offsetMinutes);
36
36
  }
37
37
  static getInstance() {
38
38
  return this.views.getLocale();
@@ -40,16 +40,16 @@ class WorkingWithTimezonesTest extends AbstractSpruceFixtureTest_1.default {
40
40
  }
41
41
  WorkingWithTimezonesTest.controllerMap = {};
42
42
  __decorate([
43
- (0, test_1.test)()
43
+ (0, test_utils_1.test)()
44
44
  ], WorkingWithTimezonesTest, "canGetInstance", null);
45
45
  __decorate([
46
- (0, test_1.test)()
46
+ (0, test_utils_1.test)()
47
47
  ], WorkingWithTimezonesTest, "instanceShared", null);
48
48
  __decorate([
49
- (0, test_1.test)()
49
+ (0, test_utils_1.test)()
50
50
  ], WorkingWithTimezonesTest, "returnsInstanceFromRouter", null);
51
51
  __decorate([
52
- (0, test_1.test)('can set offset 1', 10),
53
- (0, test_1.test)('can set offset 2', 20)
52
+ (0, test_utils_1.test)('can set offset 1', 10),
53
+ (0, test_utils_1.test)('can set offset 2', 20)
54
54
  ], WorkingWithTimezonesTest, "canSetTimezoneOffset", null);
55
55
  exports.default = WorkingWithTimezonesTest;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const test_1 = require("@sprucelabs/test");
6
+ const test_utils_1 = require("@sprucelabs/test-utils");
7
7
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
8
8
  const constants_1 = require("../../tests/constants");
9
9
  const fake_1 = __importDefault(require("../../tests/decorators/fake"));
@@ -12,9 +12,9 @@ class AbstractFakeDecoratorTest extends AbstractSpruceFixtureTest_1.default {
12
12
  await this.fakeLogin(phone);
13
13
  const { client, person } = await this.people.loginAsDemoPerson();
14
14
  const [{ auth, type }] = await client.emitAndFlattenResponses('whoami::v2020_12_25');
15
- test_1.assert.isEqual(type, 'authenticated');
16
- test_1.assert.isEqualDeep(auth.person, this.fakedPerson);
17
- test_1.assert.isEqualDeep(person, this.fakedPerson);
15
+ test_utils_1.assert.isEqual(type, 'authenticated');
16
+ test_utils_1.assert.isEqualDeep(auth.person, this.fakedPerson);
17
+ test_utils_1.assert.isEqualDeep(person, this.fakedPerson);
18
18
  return auth;
19
19
  }
20
20
  static async fakeLogin(number = constants_1.DEMO_NUMBER) {
@@ -13,7 +13,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
13
13
  step((generator = generator.apply(thisArg, _arguments || [])).next());
14
14
  });
15
15
  };
16
- import { test, assert } from '@sprucelabs/test';
16
+ import { test, assert } from '@sprucelabs/test-utils';
17
17
  import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest.js';
18
18
  import seed from '../../tests/decorators/seed.js';
19
19
  import StoreFixture from '../../tests/fixtures/StoreFixture.js';
@@ -1,4 +1,4 @@
1
- import AbstractSpruceTest from '@sprucelabs/test';
1
+ import AbstractSpruceTest from '@sprucelabs/test-utils';
2
2
  export default class StoreFixtureTest extends AbstractSpruceTest {
3
3
  private static fixture;
4
4
  protected static beforeEach(): Promise<void>;
@@ -14,7 +14,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
14
14
  });
15
15
  };
16
16
  import { DatabaseFixture } from '@sprucelabs/data-stores';
17
- import AbstractSpruceTest, { assert, test } from '@sprucelabs/test';
17
+ import AbstractSpruceTest, { assert, test } from '@sprucelabs/test-utils';
18
18
  import FixtureFactory from '../../tests/fixtures/FixtureFactory.js';
19
19
  export default class StoreFixtureTest extends AbstractSpruceTest {
20
20
  static beforeEach() {
@@ -4,7 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { test, assert } from '@sprucelabs/test';
7
+ import { test, assert } from '@sprucelabs/test-utils';
8
8
  import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest.js';
9
9
  import seed from '../../tests/decorators/seed.js';
10
10
  import StoreFixture from '../../tests/fixtures/StoreFixture.js';