@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
@@ -10,26 +10,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const schema_1 = require("@sprucelabs/schema");
13
- const test_1 = require("@sprucelabs/test");
14
13
  const test_utils_1 = require("@sprucelabs/test-utils");
14
+ const test_utils_2 = require("@sprucelabs/test-utils");
15
15
  const __1 = require("../..");
16
16
  const phoneNumberIncrementor_1 = __importDefault(require("../../utilities/phoneNumberIncrementor"));
17
17
  class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
18
18
  static async canCreatePhoneNumberIncrementor() {
19
- test_1.assert.isTruthy(phoneNumberIncrementor_1.default);
20
- test_1.assert.isFunction(phoneNumberIncrementor_1.default.generate);
19
+ test_utils_1.assert.isTruthy(phoneNumberIncrementor_1.default);
20
+ test_utils_1.assert.isFunction(phoneNumberIncrementor_1.default.generate);
21
21
  }
22
22
  static async throwsWithMissingOptions(options, parameters) {
23
- const err = await test_1.assert.doesThrowAsync(() => phoneNumberIncrementor_1.default.generate(options));
24
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
23
+ const err = await test_utils_1.assert.doesThrowAsync(() => phoneNumberIncrementor_1.default.generate(options));
24
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
25
25
  parameters,
26
26
  });
27
27
  }
28
28
  static async throwsWithBadNumber(phone) {
29
- const err = await test_1.assert.doesThrowAsync(() => this.generate({
29
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.generate({
30
30
  startingPhone: phone,
31
31
  }));
32
- test_utils_1.errorAssert.assertError(err, 'INVALID_PARAMETERS', {
32
+ test_utils_2.errorAssert.assertError(err, 'INVALID_PARAMETERS', {
33
33
  parameters: ['startingPhone'],
34
34
  });
35
35
  }
@@ -37,7 +37,7 @@ class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
37
37
  const numbers = await this.generate({
38
38
  totalToGenerate: total,
39
39
  });
40
- test_1.assert.isLength(numbers, total);
40
+ test_utils_1.assert.isLength(numbers, total);
41
41
  }
42
42
  static async handlesFormattedNumber() {
43
43
  await this.generate({
@@ -46,43 +46,43 @@ class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
46
46
  }
47
47
  static async generatesExpectedNumbers(expected) {
48
48
  const numbers = await this.generate({ totalToGenerate: expected.length });
49
- test_1.assert.isEqualDeep(numbers, expected);
49
+ test_utils_1.assert.isEqualDeep(numbers, expected);
50
50
  }
51
51
  static async generateNumbersFromDifferentStartNumber() {
52
52
  const numbers = this.generate({ startingPhone: '001-000-0001' });
53
- test_1.assert.isEqualDeep(numbers, ['+1 001-000-0001', '+1 001-000-0002']);
53
+ test_utils_1.assert.isEqualDeep(numbers, ['+1 001-000-0001', '+1 001-000-0002']);
54
54
  }
55
55
  static generate(options) {
56
56
  return phoneNumberIncrementor_1.default.generate(Object.assign({ startingPhone: '000-000-0000', totalToGenerate: 2 }, options));
57
57
  }
58
58
  }
59
59
  __decorate([
60
- (0, test_1.test)()
60
+ (0, test_utils_1.test)()
61
61
  ], PhoneNumberIncrementorTest, "canCreatePhoneNumberIncrementor", null);
62
62
  __decorate([
63
- (0, test_1.test)('throws if all options missing', {}, [
63
+ (0, test_utils_1.test)('throws if all options missing', {}, [
64
64
  'startingPhone',
65
65
  'totalToGenerate',
66
66
  ]),
67
- (0, test_1.test)('throws if totalToGenerate options missing', { startingPhone: '234234' }, ['totalToGenerate']),
68
- (0, test_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, [
67
+ (0, test_utils_1.test)('throws if totalToGenerate options missing', { startingPhone: '234234' }, ['totalToGenerate']),
68
+ (0, test_utils_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, [
69
69
  'startingPhone',
70
70
  ])
71
71
  ], PhoneNumberIncrementorTest, "throwsWithMissingOptions", null);
72
72
  __decorate([
73
- (0, test_1.test)('throws if phone is 234234', '234234'),
74
- (0, test_1.test)('throws if phone is 0000', '000')
73
+ (0, test_utils_1.test)('throws if phone is 234234', '234234'),
74
+ (0, test_utils_1.test)('throws if phone is 0000', '000')
75
75
  ], PhoneNumberIncrementorTest, "throwsWithBadNumber", null);
76
76
  __decorate([
77
- (0, test_1.test)('generates 10 numbers', 10),
78
- (0, test_1.test)('generates 20 numbers', 20)
77
+ (0, test_utils_1.test)('generates 10 numbers', 10),
78
+ (0, test_utils_1.test)('generates 20 numbers', 20)
79
79
  ], PhoneNumberIncrementorTest, "generatesExpectedNumberOfNumbers", null);
80
80
  __decorate([
81
- (0, test_1.test)()
81
+ (0, test_utils_1.test)()
82
82
  ], PhoneNumberIncrementorTest, "handlesFormattedNumber", null);
83
83
  __decorate([
84
- (0, test_1.test)('generates 2 expected', ['+1 000-000-0000', '+1 000-000-0001']),
85
- (0, test_1.test)('generates 4 expected', [
84
+ (0, test_utils_1.test)('generates 2 expected', ['+1 000-000-0000', '+1 000-000-0001']),
85
+ (0, test_utils_1.test)('generates 4 expected', [
86
86
  '+1 000-000-0000',
87
87
  '+1 000-000-0001',
88
88
  '+1 000-000-0002',
@@ -90,6 +90,6 @@ __decorate([
90
90
  ])
91
91
  ], PhoneNumberIncrementorTest, "generatesExpectedNumbers", null);
92
92
  __decorate([
93
- (0, test_1.test)()
93
+ (0, test_utils_1.test)()
94
94
  ], PhoneNumberIncrementorTest, "generateNumbersFromDifferentStartNumber", null);
95
95
  exports.default = PhoneNumberIncrementorTest;
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
10
- const test_1 = require("@sprucelabs/test");
10
+ const test_utils_1 = require("@sprucelabs/test-utils");
11
11
  const __1 = require("../..");
12
12
  const constants_1 = require("../../tests/constants");
13
13
  let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends __1.AbstractSpruceFixtureTest {
@@ -35,7 +35,7 @@ let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTes
35
35
  await this.wait(4000);
36
36
  }
37
37
  static async shouldHaveNoLocations() {
38
- await test_1.assert.doesThrowAsync(() => this.listLocations());
38
+ await test_utils_1.assert.doesThrowAsync(() => this.listLocations());
39
39
  }
40
40
  static async nothing() { }
41
41
  static async listLocations() {
@@ -43,13 +43,13 @@ let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTes
43
43
  }
44
44
  };
45
45
  __decorate([
46
- (0, test_1.test)()
46
+ (0, test_utils_1.test)()
47
47
  ], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
48
48
  __decorate([
49
- (0, test_1.test)()
49
+ (0, test_utils_1.test)()
50
50
  ], ResettingAccountBeforeAllTestsTest, "shouldHaveNoLocations", null);
51
51
  __decorate([
52
- (0, test_1.test)(),
52
+ (0, test_utils_1.test)(),
53
53
  (0, __1.seed)('locations', 1)
54
54
  ], ResettingAccountBeforeAllTestsTest, "nothing", null);
55
55
  ResettingAccountBeforeAllTestsTest = __decorate([
@@ -6,14 +6,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const test_1 = require("@sprucelabs/test");
9
+ const test_utils_1 = require("@sprucelabs/test-utils");
10
10
  const __1 = require("../..");
11
11
  const constants_1 = require("../../tests/constants");
12
12
  let ResettingAccountAfterAllTestsTest = class ResettingAccountAfterAllTestsTest extends __1.AbstractSpruceFixtureTest {
13
13
  static async afterAll() {
14
14
  await super.afterAll();
15
15
  const orgs = await this.organizations.listOrganizations(constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET);
16
- test_1.assert.isLength(orgs, 0);
16
+ test_utils_1.assert.isLength(orgs, 0);
17
17
  }
18
18
  static async seedMoar() {
19
19
  await this.organizations.seedDemoOrganization({
@@ -22,7 +22,7 @@ let ResettingAccountAfterAllTestsTest = class ResettingAccountAfterAllTestsTest
22
22
  }
23
23
  };
24
24
  __decorate([
25
- (0, test_1.test)(),
25
+ (0, test_utils_1.test)(),
26
26
  (0, __1.seed)('organizations', 1)
27
27
  ], ResettingAccountAfterAllTestsTest, "seedMoar", null);
28
28
  ResettingAccountAfterAllTestsTest = __decorate([
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- const test_1 = require("@sprucelabs/test");
9
+ const test_utils_1 = require("@sprucelabs/test-utils");
10
10
  const __1 = require("../..");
11
11
  const constants_1 = require("../../tests/constants");
12
12
  let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends __1.AbstractSpruceFixtureTest {
@@ -15,7 +15,7 @@ let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTes
15
15
  }
16
16
  static async shouldHaveNoOrgs() {
17
17
  const orgs = await this.listOrgs();
18
- test_1.assert.isLength(orgs, 0);
18
+ test_utils_1.assert.isLength(orgs, 0);
19
19
  }
20
20
  static async nothing() { }
21
21
  static async listOrgs() {
@@ -23,13 +23,13 @@ let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTes
23
23
  }
24
24
  };
25
25
  __decorate([
26
- (0, test_1.test)()
26
+ (0, test_utils_1.test)()
27
27
  ], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
28
28
  __decorate([
29
- (0, test_1.test)()
29
+ (0, test_utils_1.test)()
30
30
  ], ResettingAccountBeforeAllTestsTest, "shouldHaveNoOrgs", null);
31
31
  __decorate([
32
- (0, test_1.test)(),
32
+ (0, test_utils_1.test)(),
33
33
  (0, __1.seed)('organizations', 1)
34
34
  ], ResettingAccountBeforeAllTestsTest, "nothing", null);
35
35
  ResettingAccountBeforeAllTestsTest = __decorate([
@@ -10,7 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const data_stores_1 = require("@sprucelabs/data-stores");
13
- const test_1 = require("@sprucelabs/test");
13
+ const test_utils_1 = require("@sprucelabs/test-utils");
14
14
  const __1 = require("../..");
15
15
  const SeedFixture_1 = __importDefault(require("../../tests/fixtures/SeedFixture"));
16
16
  const toCheck = [
@@ -79,10 +79,10 @@ class ResettingFixtureFieldsBeforeEachTest extends __1.AbstractSpruceFixtureTest
79
79
  static shouldBeAbleToGetAllFixtures() {
80
80
  for (const check of toCheck) {
81
81
  const fixture = this.getFixture(check);
82
- test_1.assert.isTruthy(fixture, `No fixture found for ${check.fixtureName}`);
82
+ test_utils_1.assert.isTruthy(fixture, `No fixture found for ${check.fixtureName}`);
83
83
  const local = this.getPrivateProp(check);
84
- test_1.assert.isTruthy(local, `Did not set this.${check.privatePropName}`);
85
- test_1.assert.isEqual(fixture, local);
84
+ test_utils_1.assert.isTruthy(local, `Did not set this.${check.privatePropName}`);
85
+ test_utils_1.assert.isEqual(fixture, local);
86
86
  }
87
87
  }
88
88
  static async privatePropsNotSetAtFirst() {
@@ -103,7 +103,7 @@ class ResettingFixtureFieldsBeforeEachTest extends __1.AbstractSpruceFixtureTest
103
103
  }
104
104
  static assertLocalPropsAreCleared() {
105
105
  for (const check of toCheck) {
106
- test_1.assert.isFalsy(this.getPrivateProp(check));
106
+ test_utils_1.assert.isFalsy(this.getPrivateProp(check));
107
107
  }
108
108
  }
109
109
  static getFixture(check) {
@@ -116,15 +116,15 @@ class ResettingFixtureFieldsBeforeEachTest extends __1.AbstractSpruceFixtureTest
116
116
  }
117
117
  }
118
118
  __decorate([
119
- (0, test_1.test)()
119
+ (0, test_utils_1.test)()
120
120
  ], ResettingFixtureFieldsBeforeEachTest, "shouldBeAbleToGetAllFixtures", null);
121
121
  __decorate([
122
- (0, test_1.test)()
122
+ (0, test_utils_1.test)()
123
123
  ], ResettingFixtureFieldsBeforeEachTest, "privatePropsNotSetAtFirst", null);
124
124
  __decorate([
125
- (0, test_1.test)()
125
+ (0, test_utils_1.test)()
126
126
  ], ResettingFixtureFieldsBeforeEachTest, "canSetEachPrivateProp", null);
127
127
  __decorate([
128
- (0, test_1.test)()
128
+ (0, test_utils_1.test)()
129
129
  ], ResettingFixtureFieldsBeforeEachTest, "afterEachClearsLocalProps", null);
130
130
  exports.default = ResettingFixtureFieldsBeforeEachTest;
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.ResettingLocalEventListeningBeforeSeedingTest = void 0;
10
- const test_1 = require("@sprucelabs/test");
10
+ const test_utils_1 = require("@sprucelabs/test-utils");
11
11
  const __1 = require("../..");
12
12
  const constants_1 = require("../../tests/constants");
13
13
  let ResettingLocalEventListeningBeforeSeedingTest = class ResettingLocalEventListeningBeforeSeedingTest extends __1.AbstractSpruceFixtureTest {
@@ -23,7 +23,7 @@ let ResettingLocalEventListeningBeforeSeedingTest = class ResettingLocalEventLis
23
23
  });
24
24
  }
25
25
  static async hitCountShouldBeZero() {
26
- test_1.assert.isEqual(this.hitCount, 0);
26
+ test_utils_1.assert.isEqual(this.hitCount, 0);
27
27
  }
28
28
  };
29
29
  ResettingLocalEventListeningBeforeSeedingTest.hitCount = 0;
@@ -31,10 +31,10 @@ __decorate([
31
31
  (0, __1.seed)('organizations', 1)
32
32
  ], ResettingLocalEventListeningBeforeSeedingTest, "beforeEach", null);
33
33
  __decorate([
34
- (0, test_1.test)()
34
+ (0, test_utils_1.test)()
35
35
  ], ResettingLocalEventListeningBeforeSeedingTest, "testClientIsResetBeforeSeeding", null);
36
36
  __decorate([
37
- (0, test_1.test)()
37
+ (0, test_utils_1.test)()
38
38
  ], ResettingLocalEventListeningBeforeSeedingTest, "hitCountShouldBeZero", null);
39
39
  ResettingLocalEventListeningBeforeSeedingTest = __decorate([
40
40
  (0, __1.login)(constants_1.DEMO_NUMBER_TEST_CLIENT_RECENT)
@@ -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 __1 = require("../..");
14
14
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
15
15
  const constants_1 = require("../../tests/constants");
@@ -28,7 +28,7 @@ let RetainsContractWhenLoggingInUsingDecorator = class RetainsContractWhenLoggin
28
28
  }
29
29
  };
30
30
  __decorate([
31
- (0, test_1.test)()
31
+ (0, test_utils_1.test)()
32
32
  ], RetainsContractWhenLoggingInUsingDecorator, "clientStillHasContract", null);
33
33
  RetainsContractWhenLoggingInUsingDecorator = __decorate([
34
34
  (0, __1.login)(constants_1.DEMO_NUMBER_ACCOUNT_RESET)
@@ -10,8 +10,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
13
- const test_1 = require("@sprucelabs/test");
14
13
  const test_utils_1 = require("@sprucelabs/test-utils");
14
+ const test_utils_2 = require("@sprucelabs/test-utils");
15
15
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
16
16
  const constants_1 = require("../../tests/constants");
17
17
  const fake_1 = __importDefault(require("../../tests/decorators/fake"));
@@ -23,18 +23,18 @@ let RoleFixtureTest = class RoleFixtureTest extends AbstractSpruceFixtureTest_1.
23
23
  this.client = fake_1.default.getClient();
24
24
  }
25
25
  static hasRoleFixture() {
26
- test_1.assert.isTruthy(this.fixture);
26
+ test_utils_1.assert.isTruthy(this.fixture);
27
27
  }
28
28
  static async cantListRolesWithoutOrg() {
29
- const err = await test_1.assert.doesThrowAsync(() => this.fixture.listRoles());
30
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
29
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.listRoles());
30
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
31
31
  parameters: ['organizationId'],
32
32
  });
33
33
  }
34
34
  static async listsValidRoles() {
35
35
  const roles = await this.fixture.listRoles();
36
- test_1.assert.isArray(roles);
37
- test_1.assert.isAbove(roles.length, 0);
36
+ test_utils_1.assert.isArray(roles);
37
+ test_utils_1.assert.isAbove(roles.length, 0);
38
38
  for (const role of roles) {
39
39
  const results = await this.client.emit('get-role::v2020_12_25', {
40
40
  target: {
@@ -59,11 +59,11 @@ let RoleFixtureTest = class RoleFixtureTest extends AbstractSpruceFixtureTest_1.
59
59
  const orgs = await this.organizations.listOrganizations();
60
60
  const org = orgs[2];
61
61
  const roles = await this.fixture.listRoles({ organizationId: org.id });
62
- test_1.assert.isEqual(roles[0].organizationId, org.id);
62
+ test_utils_1.assert.isEqual(roles[0].organizationId, org.id);
63
63
  }
64
64
  static async getNewestOrg() {
65
65
  const org = await this.organizations.getNewestOrganization();
66
- test_1.assert.isTruthy(org, `You gotta @seed('organizations',1) to continue.`);
66
+ test_utils_1.assert.isTruthy(org, `You gotta @seed('organizations',1) to continue.`);
67
67
  return org;
68
68
  }
69
69
  static async assertListedRolesMatchExpected(expectedRoles, options) {
@@ -73,7 +73,7 @@ let RoleFixtureTest = class RoleFixtureTest extends AbstractSpruceFixtureTest_1.
73
73
  }
74
74
  roles.sort(sort);
75
75
  expectedRoles.sort(sort);
76
- test_1.assert.isEqualDeep(roles, expectedRoles);
76
+ test_utils_1.assert.isEqualDeep(roles, expectedRoles);
77
77
  }
78
78
  static async listRoles() {
79
79
  const org = await this.getNewestOrg();
@@ -91,25 +91,25 @@ let RoleFixtureTest = class RoleFixtureTest extends AbstractSpruceFixtureTest_1.
91
91
  }
92
92
  };
93
93
  __decorate([
94
- (0, test_1.test)()
94
+ (0, test_utils_1.test)()
95
95
  ], RoleFixtureTest, "hasRoleFixture", null);
96
96
  __decorate([
97
- (0, test_1.test)()
97
+ (0, test_utils_1.test)()
98
98
  ], RoleFixtureTest, "cantListRolesWithoutOrg", null);
99
99
  __decorate([
100
- (0, test_1.test)(),
100
+ (0, test_utils_1.test)(),
101
101
  (0, seed_1.default)('organizations', 1)
102
102
  ], RoleFixtureTest, "listsValidRoles", null);
103
103
  __decorate([
104
- (0, test_1.test)(),
104
+ (0, test_utils_1.test)(),
105
105
  (0, seed_1.default)('organizations', 1)
106
106
  ], RoleFixtureTest, "listsWorkingRolesByDefault", null);
107
107
  __decorate([
108
- (0, test_1.test)(),
108
+ (0, test_utils_1.test)(),
109
109
  (0, seed_1.default)('organizations', 1)
110
110
  ], RoleFixtureTest, "listMetaRolesWithOptions", null);
111
111
  __decorate([
112
- (0, test_1.test)(),
112
+ (0, test_utils_1.test)(),
113
113
  (0, seed_1.default)('organizations', 3)
114
114
  ], RoleFixtureTest, "canPassOwnOrg", null);
115
115
  RoleFixtureTest = __decorate([
@@ -22,8 +22,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  const schema_1 = require("@sprucelabs/schema");
24
24
  const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
25
- const test_1 = require("@sprucelabs/test");
26
25
  const test_utils_1 = require("@sprucelabs/test-utils");
26
+ const test_utils_2 = require("@sprucelabs/test-utils");
27
27
  const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
28
28
  const constants_1 = require("../../tests/constants");
29
29
  const fake_1 = __importDefault(require("../../tests/decorators/fake"));
@@ -36,13 +36,13 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
36
36
  await this.fixture.resetAccount(constants_1.DEMO_NUMBER_SEED_FIXTURE);
37
37
  }
38
38
  static hasSeedFixture() {
39
- test_1.assert.isTruthy(this.fixture);
39
+ test_utils_1.assert.isTruthy(this.fixture);
40
40
  }
41
41
  static async canSeedManyOrgs() {
42
42
  const organizations = await this.fixture.seedOrganizations({
43
43
  totalOrganizations: 5,
44
44
  });
45
- test_1.assert.isLength(organizations, 5);
45
+ test_utils_1.assert.isLength(organizations, 5);
46
46
  }
47
47
  static async actuallyCreatesOrgs() {
48
48
  const organizations = await this.fixture.seedOrganizations({
@@ -54,8 +54,8 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
54
54
  },
55
55
  });
56
56
  const { organizations: matched } = spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(results);
57
- test_1.assert.isLength(matched, 3);
58
- test_1.assert.isLength(organizations, 3);
57
+ test_utils_1.assert.isLength(matched, 3);
58
+ test_utils_1.assert.isLength(organizations, 3);
59
59
  for (const org of organizations) {
60
60
  const results = await this.client.emit('get-organization::v2020_12_25', {
61
61
  target: {
@@ -69,13 +69,13 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
69
69
  const { locations } = await this.fixture.seedAccount({
70
70
  totalLocations: 5,
71
71
  });
72
- test_1.assert.isLength(locations, 5);
72
+ test_utils_1.assert.isLength(locations, 5);
73
73
  }
74
74
  static async seedingOrgsCreatesOrganization() {
75
75
  const { locations } = await this.fixture.seedAccount({
76
76
  totalLocations: 3,
77
77
  });
78
- test_1.assert.isLength(locations, 3);
78
+ test_utils_1.assert.isLength(locations, 3);
79
79
  await this.assertOnlyOneOrgExists();
80
80
  }
81
81
  static async canPassOrgToLocationSeeder() {
@@ -88,8 +88,8 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
88
88
  }
89
89
  static async throwsWhenSeedingWithoutCount() {
90
90
  //@ts-ignore
91
- const err = await test_1.assert.doesThrowAsync(() => this.fixture.seedAccount({}));
92
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
91
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.fixture.seedAccount({}));
92
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
93
93
  parameters: ['totalLocations'],
94
94
  });
95
95
  }
@@ -101,7 +101,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
101
101
  },
102
102
  });
103
103
  const { locations: matches } = spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(results);
104
- test_1.assert.isLength(matches, 3);
104
+ test_utils_1.assert.isLength(matches, 3);
105
105
  for (const location of locations) {
106
106
  const results = await this.client.emit('get-location::v2020_12_25', {
107
107
  target: {
@@ -112,8 +112,8 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
112
112
  }
113
113
  }
114
114
  static async needsStartingPhoneWhenSeedingPeople(options) {
115
- const err = await test_1.assert.doesThrowAsync(() => this.seedLocations(Object.assign({}, options)));
116
- test_utils_1.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
115
+ const err = await test_utils_1.assert.doesThrowAsync(() => this.seedLocations(Object.assign({}, options)));
116
+ test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
117
117
  parameters: ['startingPhone'],
118
118
  });
119
119
  }
@@ -130,8 +130,8 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
130
130
  const people = (_a = rest[base + 's']) !== null && _a !== void 0 ? _a : [];
131
131
  people.sort(sorter);
132
132
  withoutOwnerCleaned.sort(sorter);
133
- test_1.assert.isLength(withoutOwner, expectedCount);
134
- test_1.assert.isEqualDeep(people, withoutOwnerCleaned);
133
+ test_utils_1.assert.isLength(withoutOwner, expectedCount);
134
+ test_utils_1.assert.isEqualDeep(people, withoutOwnerCleaned);
135
135
  }
136
136
  static async setsFirstPersonsNumberToTheStartingPhone(phone) {
137
137
  const { guests } = await this.seedLocations({
@@ -139,7 +139,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
139
139
  totalGuests: 1,
140
140
  startingPhone: phone,
141
141
  });
142
- test_1.assert.isEqual(guests[0].phone, (0, schema_1.formatPhoneNumber)(phone));
142
+ test_utils_1.assert.isEqual(guests[0].phone, (0, schema_1.formatPhoneNumber)(phone));
143
143
  }
144
144
  static async canSeedMultipleRolesAtOnce() {
145
145
  const { locations } = await this.seedLocations({
@@ -149,7 +149,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
149
149
  totalManagers: 2,
150
150
  });
151
151
  const people = await this.listPeople(locations[0], ['guest', 'manager']);
152
- test_1.assert.isLength(people, 5);
152
+ test_utils_1.assert.isLength(people, 5);
153
153
  }
154
154
  static async seededPeopleHaveNames() {
155
155
  const { teammates } = await this.seedLocations({
@@ -157,7 +157,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
157
157
  totalLocations: 1,
158
158
  totalTeammates: 2,
159
159
  });
160
- test_1.assert.isTruthy(teammates[0].firstName);
160
+ test_utils_1.assert.isTruthy(teammates[0].firstName);
161
161
  }
162
162
  static async peopleAllHaveUniqueNames() {
163
163
  const { teammates } = await this.seedLocations({
@@ -167,7 +167,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
167
167
  });
168
168
  const names = teammates.map((t) => t.casualName);
169
169
  const unique = [...new Set(names)];
170
- test_1.assert.isLength(unique, names.length);
170
+ test_utils_1.assert.isLength(unique, names.length);
171
171
  }
172
172
  static async namesAreOnlyAssignedIfNotYetAssigned() {
173
173
  const { client } = await this.people.loginAsDemoPerson(constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE);
@@ -185,7 +185,7 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
185
185
  totalTeammates: 1,
186
186
  });
187
187
  const [tm1] = teammates;
188
- test_1.assert.isEqual(tm1.casualName, firstName + ' ' + lastName[0] + '.');
188
+ test_utils_1.assert.isEqual(tm1.casualName, firstName + ' ' + lastName[0] + '.');
189
189
  }
190
190
  static async listPeople(location, base) {
191
191
  const people = await this.people.listPeople({
@@ -209,61 +209,61 @@ let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest_1.
209
209
  },
210
210
  });
211
211
  const { organizations } = spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(results);
212
- test_1.assert.isLength(organizations, 1);
213
- test_1.assert.isObject(organizations[0].address);
212
+ test_utils_1.assert.isLength(organizations, 1);
213
+ test_utils_1.assert.isObject(organizations[0].address);
214
214
  }
215
215
  };
216
216
  __decorate([
217
- (0, test_1.test)()
217
+ (0, test_utils_1.test)()
218
218
  ], SeedingDataTest, "hasSeedFixture", null);
219
219
  __decorate([
220
- (0, test_1.test)()
220
+ (0, test_utils_1.test)()
221
221
  ], SeedingDataTest, "canSeedManyOrgs", null);
222
222
  __decorate([
223
- (0, test_1.test)()
223
+ (0, test_utils_1.test)()
224
224
  ], SeedingDataTest, "actuallyCreatesOrgs", null);
225
225
  __decorate([
226
- (0, test_1.test)()
226
+ (0, test_utils_1.test)()
227
227
  ], SeedingDataTest, "canSeedLocations", null);
228
228
  __decorate([
229
- (0, test_1.test)()
229
+ (0, test_utils_1.test)()
230
230
  ], SeedingDataTest, "seedingOrgsCreatesOrganization", null);
231
231
  __decorate([
232
- (0, test_1.test)()
232
+ (0, test_utils_1.test)()
233
233
  ], SeedingDataTest, "canPassOrgToLocationSeeder", null);
234
234
  __decorate([
235
- (0, test_1.test)()
235
+ (0, test_utils_1.test)()
236
236
  ], SeedingDataTest, "throwsWhenSeedingWithoutCount", null);
237
237
  __decorate([
238
- (0, test_1.test)()
238
+ (0, test_utils_1.test)()
239
239
  ], SeedingDataTest, "actuallyCreatesLocations", null);
240
240
  __decorate([
241
- (0, test_1.test)('missing starting phone with totalGuests', { totalGuests: 10 }),
242
- (0, test_1.test)('missing starting phone with totalTeammates', { totalTeammates: 10 })
241
+ (0, test_utils_1.test)('missing starting phone with totalGuests', { totalGuests: 10 }),
242
+ (0, test_utils_1.test)('missing starting phone with totalTeammates', { totalTeammates: 10 })
243
243
  ], SeedingDataTest, "needsStartingPhoneWhenSeedingPeople", null);
244
244
  __decorate([
245
- (0, test_1.test)('can seed 3 guests', { totalGuests: 3 }, 3, 'guest'),
246
- (0, test_1.test)('can seed 5 guests', { totalGuests: 5 }, 5, 'guest'),
247
- (0, test_1.test)('can seed 2 teammates', { totalTeammates: 2 }, 2, 'teammate'),
248
- (0, test_1.test)('can seed 3 managers', { totalManagers: 3 }, 3, 'manager'),
249
- (0, test_1.test)('can seed 3 groupManager', { totalGroupManagers: 3 }, 3, 'groupManager'),
250
- (0, test_1.test)('can seed 1 owners', { totalOwners: 1 }, 1, 'owner')
245
+ (0, test_utils_1.test)('can seed 3 guests', { totalGuests: 3 }, 3, 'guest'),
246
+ (0, test_utils_1.test)('can seed 5 guests', { totalGuests: 5 }, 5, 'guest'),
247
+ (0, test_utils_1.test)('can seed 2 teammates', { totalTeammates: 2 }, 2, 'teammate'),
248
+ (0, test_utils_1.test)('can seed 3 managers', { totalManagers: 3 }, 3, 'manager'),
249
+ (0, test_utils_1.test)('can seed 3 groupManager', { totalGroupManagers: 3 }, 3, 'groupManager'),
250
+ (0, test_utils_1.test)('can seed 1 owners', { totalOwners: 1 }, 1, 'owner')
251
251
  ], SeedingDataTest, "returnsSeededGuests", null);
252
252
  __decorate([
253
- (0, test_1.test)('seeds with starting phone 1', constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE),
254
- (0, test_1.test)('seeds with starting phone 2', constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE_ALT)
253
+ (0, test_utils_1.test)('seeds with starting phone 1', constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE),
254
+ (0, test_utils_1.test)('seeds with starting phone 2', constants_1.DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE_ALT)
255
255
  ], SeedingDataTest, "setsFirstPersonsNumberToTheStartingPhone", null);
256
256
  __decorate([
257
- (0, test_1.test)()
257
+ (0, test_utils_1.test)()
258
258
  ], SeedingDataTest, "canSeedMultipleRolesAtOnce", null);
259
259
  __decorate([
260
- (0, test_1.test)()
260
+ (0, test_utils_1.test)()
261
261
  ], SeedingDataTest, "seededPeopleHaveNames", null);
262
262
  __decorate([
263
- (0, test_1.test)()
263
+ (0, test_utils_1.test)()
264
264
  ], SeedingDataTest, "peopleAllHaveUniqueNames", null);
265
265
  __decorate([
266
- (0, test_1.test)()
266
+ (0, test_utils_1.test)()
267
267
  ], SeedingDataTest, "namesAreOnlyAssignedIfNotYetAssigned", null);
268
268
  SeedingDataTest = __decorate([
269
269
  fake_1.default.login(constants_1.DEMO_NUMBER_SEED_FIXTURE)