@sprucelabs/spruce-test-fixtures 62.2.24 → 62.2.26
Sign up to get free protection for your applications and to get access to all the features.
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/tests/fixtures/ViewFixture.d.ts +1 -1
- package/build/esm/tests/routers/TestRouter.d.ts +1 -1
- package/build/esm/tests/routers/TestRouter.js +1 -1
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/tests/fixtures/ViewFixture.d.ts +1 -1
- package/build/tests/routers/TestRouter.d.ts +1 -1
- package/build/tests/routers/TestRouter.js +1 -1
- package/package.json +19 -19
- package/build/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.d.ts +0 -15
- package/build/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +0 -112
- package/build/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.d.ts +0 -4
- package/build/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +0 -34
- package/build/__tests__/behavioral/DisablingSchemaValidationOnTest.test.d.ts +0 -5
- package/build/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +0 -26
- package/build/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.d.ts +0 -8
- package/build/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +0 -69
- package/build/__tests__/behavioral/FakingEventResponses.test.d.ts +0 -12
- package/build/__tests__/behavioral/FakingEventResponses.test.js +0 -126
- package/build/__tests__/behavioral/FixtureFactory.test.d.ts +0 -7
- package/build/__tests__/behavioral/FixtureFactory.test.js +0 -79
- package/build/__tests__/behavioral/LocationFixture.test.d.ts +0 -17
- package/build/__tests__/behavioral/LocationFixture.test.js +0 -144
- package/build/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.d.ts +0 -12
- package/build/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +0 -95
- package/build/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.d.ts +0 -4
- package/build/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +0 -35
- package/build/__tests__/behavioral/MercuryFixture.test.d.ts +0 -20
- package/build/__tests__/behavioral/MercuryFixture.test.js +0 -187
- package/build/__tests__/behavioral/OrganizationFixture.test.d.ts +0 -31
- package/build/__tests__/behavioral/OrganizationFixture.test.js +0 -333
- package/build/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.d.ts +0 -4
- package/build/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +0 -21
- package/build/__tests__/behavioral/PersonFixture.test.d.ts +0 -22
- package/build/__tests__/behavioral/PersonFixture.test.js +0 -225
- package/build/__tests__/behavioral/PhoneNumberIncrementor.test.d.ts +0 -11
- package/build/__tests__/behavioral/PhoneNumberIncrementor.test.js +0 -95
- package/build/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.d.ts +0 -8
- package/build/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +0 -67
- package/build/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.d.ts +0 -5
- package/build/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +0 -44
- package/build/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.d.ts +0 -8
- package/build/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +0 -55
- package/build/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.d.ts +0 -10
- package/build/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +0 -137
- package/build/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.d.ts +0 -7
- package/build/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +0 -54
- package/build/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.d.ts +0 -6
- package/build/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +0 -40
- package/build/__tests__/behavioral/RoleFixture.test.d.ts +0 -15
- package/build/__tests__/behavioral/RoleFixture.test.js +0 -118
- package/build/__tests__/behavioral/SkillFixture.test.d.ts +0 -13
- package/build/__tests__/behavioral/SkillFixture.test.js +0 -118
- package/build/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.d.ts +0 -7
- package/build/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.js +0 -41
- package/build/__tests__/behavioral/databases/DatabaseFixture.test.d.ts +0 -7
- package/build/__tests__/behavioral/databases/DatabaseFixture.test.js +0 -59
- package/build/__tests__/behavioral/databases/DbResetsAsExpected.test.d.ts +0 -5
- package/build/__tests__/behavioral/databases/DbResetsAsExpected.test.js +0 -34
- package/build/__tests__/behavioral/databases/DummyStore.d.ts +0 -55
- package/build/__tests__/behavioral/databases/DummyStore.js +0 -36
- package/build/__tests__/behavioral/databases/StoreFixture.test.d.ts +0 -23
- package/build/__tests__/behavioral/databases/StoreFixture.test.js +0 -156
- package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.d.ts +0 -9
- package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +0 -73
- package/build/__tests__/behavioral/faking/FakeDecorator.test.d.ts +0 -45
- package/build/__tests__/behavioral/faking/FakeDecorator.test.js +0 -421
- package/build/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.d.ts +0 -4
- package/build/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +0 -23
- package/build/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.d.ts +0 -4
- package/build/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +0 -27
- package/build/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +0 -8
- package/build/__tests__/behavioral/faking/FakeThemeManager.test.js +0 -93
- package/build/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.d.ts +0 -8
- package/build/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +0 -56
- package/build/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.d.ts +0 -14
- package/build/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +0 -141
- package/build/__tests__/behavioral/faking/FakingAuthenticator.test.d.ts +0 -5
- package/build/__tests__/behavioral/faking/FakingAuthenticator.test.js +0 -35
- package/build/__tests__/behavioral/faking/FakingInBeforeEach.test.d.ts +0 -6
- package/build/__tests__/behavioral/faking/FakingInBeforeEach.test.js +0 -42
- package/build/__tests__/behavioral/faking/FakingLocations.test.d.ts +0 -6
- package/build/__tests__/behavioral/faking/FakingLocations.test.js +0 -45
- package/build/__tests__/behavioral/faking/FakingRoleEvents.test.d.ts +0 -19
- package/build/__tests__/behavioral/faking/FakingRoleEvents.test.js +0 -140
- package/build/__tests__/behavioral/faking/FakingSkillEvents.test.d.ts +0 -24
- package/build/__tests__/behavioral/faking/FakingSkillEvents.test.js +0 -174
- package/build/__tests__/behavioral/faking/UpdatePerson.test.d.ts +0 -4
- package/build/__tests__/behavioral/faking/UpdatePerson.test.js +0 -32
- package/build/__tests__/behavioral/faking/UsingFakeDecorators.test.d.ts +0 -35
- package/build/__tests__/behavioral/faking/UsingFakeDecorators.test.js +0 -321
- package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +0 -4
- package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +0 -48
- package/build/__tests__/behavioral/faking/WhoAmI.test.d.ts +0 -19
- package/build/__tests__/behavioral/faking/WhoAmI.test.js +0 -105
- package/build/__tests__/behavioral/maps/SpyingMapUtil.test.d.ts +0 -10
- package/build/__tests__/behavioral/maps/SpyingMapUtil.test.js +0 -76
- package/build/__tests__/behavioral/permissions/FakeAuthorizer.test.d.ts +0 -34
- package/build/__tests__/behavioral/permissions/FakeAuthorizer.test.js +0 -272
- package/build/__tests__/behavioral/permissions/PermissionFixture.test.d.ts +0 -5
- package/build/__tests__/behavioral/permissions/PermissionFixture.test.js +0 -35
- package/build/__tests__/behavioral/seeding/SeedingData.test.d.ts +0 -24
- package/build/__tests__/behavioral/seeding/SeedingData.test.js +0 -271
- package/build/__tests__/behavioral/seeding/UsingDecorators.test.d.ts +0 -37
- package/build/__tests__/behavioral/seeding/UsingDecorators.test.js +0 -266
- package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.d.ts +0 -14
- package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +0 -117
- package/build/__tests__/behavioral/views/FakingSkillViewControllers.test.d.ts +0 -12
- package/build/__tests__/behavioral/views/FakingSkillViewControllers.test.js +0 -55
- package/build/__tests__/behavioral/views/Routing.test.d.ts +0 -36
- package/build/__tests__/behavioral/views/Routing.test.js +0 -177
- package/build/__tests__/behavioral/views/TestingScope.test.d.ts +0 -24
- package/build/__tests__/behavioral/views/TestingScope.test.js +0 -197
- package/build/__tests__/behavioral/views/ViewPlugins.test.d.ts +0 -12
- package/build/__tests__/behavioral/views/ViewPlugins.test.js +0 -83
- package/build/__tests__/behavioral/views/WorkingWithTimezones.test.d.ts +0 -11
- package/build/__tests__/behavioral/views/WorkingWithTimezones.test.js +0 -55
- package/build/__tests__/behavioral/views/viewFixture/ViewFixture.test.d.ts +0 -118
- package/build/__tests__/behavioral/views/viewFixture/ViewFixture.test.js +0 -761
- package/build/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.d.ts +0 -5
- package/build/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.js +0 -29
- package/build/__tests__/support/AbstractFakeDecoratorTest.d.ts +0 -5
- package/build/__tests__/support/AbstractFakeDecoratorTest.js +0 -27
- package/build/__tests__/support/EventFaker.d.ts +0 -5
- package/build/__tests__/support/EventFaker.js +0 -36
- package/build/__tests__/support/RandomViewPlugin.d.ts +0 -2
- package/build/__tests__/support/RandomViewPlugin.js +0 -5
- package/build/__tests__/support/RandomViewPlugin2.d.ts +0 -2
- package/build/__tests__/support/RandomViewPlugin2.js +0 -5
- package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/.spruce/stores/stores.d.ts +0 -5
- package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/.spruce/stores/stores.js +0 -9
- package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.d.ts +0 -51
- package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +0 -33
- package/build/__tests__/testDirsAndFiles/one-good-store-skill/src/.spruce/settings.json +0 -6
- package/build/__tests__/testDirsAndFiles/plugins1/build/.spruce/views/views.d.ts +0 -6
- package/build/__tests__/testDirsAndFiles/plugins1/build/.spruce/views/views.js +0 -11
- package/build/__tests__/testDirsAndFiles/plugins2/build/.spruce/views/views.d.ts +0 -6
- package/build/__tests__/testDirsAndFiles/plugins2/build/.spruce/views/views.js +0 -11
- package/build/__tests__/testDirsAndFiles/skill/build/.spruce/views/views.js +0 -18
- package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +0 -5
- package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.js +0 -11
- package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +0 -7
- package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.js +0 -19
- package/build/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.d.ts +0 -8
- package/build/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.js +0 -31
- package/build/__tests__/testDirsAndFiles/skill/package.json +0 -5
- package/build/__tests__/testDirsAndFiles/skill/src/.spruce/settings.json +0 -6
- package/build/__tests__/testDirsAndFiles/skill/src/.spruce/views/views.d.ts +0 -7
- package/build/__tests__/testDirsAndFiles/skill/src/.spruce/views/views.js +0 -17
- package/build/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.d.ts +0 -5
- package/build/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.js +0 -11
- package/build/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.d.ts +0 -8
- package/build/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.js +0 -31
- package/build/esm/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.d.ts +0 -15
- package/build/esm/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +0 -128
- package/build/esm/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +0 -40
- package/build/esm/__tests__/behavioral/DisablingSchemaValidationOnTest.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +0 -23
- package/build/esm/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.d.ts +0 -8
- package/build/esm/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +0 -80
- package/build/esm/__tests__/behavioral/FakingEventResponses.test.d.ts +0 -12
- package/build/esm/__tests__/behavioral/FakingEventResponses.test.js +0 -148
- package/build/esm/__tests__/behavioral/FixtureFactory.test.d.ts +0 -7
- package/build/esm/__tests__/behavioral/FixtureFactory.test.js +0 -61
- package/build/esm/__tests__/behavioral/LocationFixture.test.d.ts +0 -17
- package/build/esm/__tests__/behavioral/LocationFixture.test.js +0 -173
- package/build/esm/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.d.ts +0 -12
- package/build/esm/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +0 -113
- package/build/esm/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +0 -41
- package/build/esm/__tests__/behavioral/MercuryFixture.test.d.ts +0 -20
- package/build/esm/__tests__/behavioral/MercuryFixture.test.js +0 -223
- package/build/esm/__tests__/behavioral/OrganizationFixture.test.d.ts +0 -31
- package/build/esm/__tests__/behavioral/OrganizationFixture.test.js +0 -389
- package/build/esm/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +0 -18
- package/build/esm/__tests__/behavioral/PersonFixture.test.d.ts +0 -22
- package/build/esm/__tests__/behavioral/PersonFixture.test.js +0 -232
- package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.d.ts +0 -11
- package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.js +0 -112
- package/build/esm/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.d.ts +0 -8
- package/build/esm/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +0 -84
- package/build/esm/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +0 -55
- package/build/esm/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.d.ts +0 -8
- package/build/esm/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +0 -72
- package/build/esm/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.d.ts +0 -10
- package/build/esm/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +0 -146
- package/build/esm/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.d.ts +0 -7
- package/build/esm/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +0 -66
- package/build/esm/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.d.ts +0 -6
- package/build/esm/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +0 -51
- package/build/esm/__tests__/behavioral/RoleFixture.test.d.ts +0 -15
- package/build/esm/__tests__/behavioral/RoleFixture.test.js +0 -143
- package/build/esm/__tests__/behavioral/SkillFixture.test.d.ts +0 -13
- package/build/esm/__tests__/behavioral/SkillFixture.test.js +0 -141
- package/build/esm/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.d.ts +0 -7
- package/build/esm/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.js +0 -53
- package/build/esm/__tests__/behavioral/databases/DatabaseFixture.test.d.ts +0 -7
- package/build/esm/__tests__/behavioral/databases/DatabaseFixture.test.js +0 -48
- package/build/esm/__tests__/behavioral/databases/DbResetsAsExpected.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/databases/DbResetsAsExpected.test.js +0 -28
- package/build/esm/__tests__/behavioral/databases/DummyStore.d.ts +0 -55
- package/build/esm/__tests__/behavioral/databases/DummyStore.js +0 -43
- package/build/esm/__tests__/behavioral/databases/StoreFixture.test.d.ts +0 -23
- package/build/esm/__tests__/behavioral/databases/StoreFixture.test.js +0 -164
- package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.d.ts +0 -9
- package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +0 -89
- package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.d.ts +0 -45
- package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.js +0 -482
- package/build/esm/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +0 -28
- package/build/esm/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +0 -32
- package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +0 -8
- package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.js +0 -82
- package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.d.ts +0 -8
- package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +0 -70
- package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.d.ts +0 -14
- package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +0 -165
- package/build/esm/__tests__/behavioral/faking/FakingAuthenticator.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/faking/FakingAuthenticator.test.js +0 -43
- package/build/esm/__tests__/behavioral/faking/FakingInBeforeEach.test.d.ts +0 -6
- package/build/esm/__tests__/behavioral/faking/FakingInBeforeEach.test.js +0 -55
- package/build/esm/__tests__/behavioral/faking/FakingLocations.test.d.ts +0 -6
- package/build/esm/__tests__/behavioral/faking/FakingLocations.test.js +0 -55
- package/build/esm/__tests__/behavioral/faking/FakingRoleEvents.test.d.ts +0 -19
- package/build/esm/__tests__/behavioral/faking/FakingRoleEvents.test.js +0 -175
- package/build/esm/__tests__/behavioral/faking/FakingSkillEvents.test.d.ts +0 -24
- package/build/esm/__tests__/behavioral/faking/FakingSkillEvents.test.js +0 -214
- package/build/esm/__tests__/behavioral/faking/UpdatePerson.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/faking/UpdatePerson.test.js +0 -38
- package/build/esm/__tests__/behavioral/faking/UsingFakeDecorators.test.d.ts +0 -35
- package/build/esm/__tests__/behavioral/faking/UsingFakeDecorators.test.js +0 -360
- package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +0 -4
- package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +0 -31
- package/build/esm/__tests__/behavioral/faking/WhoAmI.test.d.ts +0 -19
- package/build/esm/__tests__/behavioral/faking/WhoAmI.test.js +0 -142
- package/build/esm/__tests__/behavioral/maps/SpyingMapUtil.test.d.ts +0 -10
- package/build/esm/__tests__/behavioral/maps/SpyingMapUtil.test.js +0 -94
- package/build/esm/__tests__/behavioral/permissions/FakeAuthorizer.test.d.ts +0 -34
- package/build/esm/__tests__/behavioral/permissions/FakeAuthorizer.test.js +0 -324
- package/build/esm/__tests__/behavioral/permissions/PermissionFixture.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/permissions/PermissionFixture.test.js +0 -43
- package/build/esm/__tests__/behavioral/seeding/SeedingData.test.d.ts +0 -24
- package/build/esm/__tests__/behavioral/seeding/SeedingData.test.js +0 -314
- package/build/esm/__tests__/behavioral/seeding/UsingDecorators.test.d.ts +0 -37
- package/build/esm/__tests__/behavioral/seeding/UsingDecorators.test.js +0 -322
- package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.d.ts +0 -14
- package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +0 -138
- package/build/esm/__tests__/behavioral/views/FakingSkillViewControllers.test.d.ts +0 -12
- package/build/esm/__tests__/behavioral/views/FakingSkillViewControllers.test.js +0 -70
- package/build/esm/__tests__/behavioral/views/Routing.test.d.ts +0 -36
- package/build/esm/__tests__/behavioral/views/Routing.test.js +0 -212
- package/build/esm/__tests__/behavioral/views/TestingScope.test.d.ts +0 -24
- package/build/esm/__tests__/behavioral/views/TestingScope.test.js +0 -238
- package/build/esm/__tests__/behavioral/views/ViewPlugins.test.d.ts +0 -12
- package/build/esm/__tests__/behavioral/views/ViewPlugins.test.js +0 -103
- package/build/esm/__tests__/behavioral/views/WorkingWithTimezones.test.d.ts +0 -11
- package/build/esm/__tests__/behavioral/views/WorkingWithTimezones.test.js +0 -64
- package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixture.test.d.ts +0 -118
- package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixture.test.js +0 -856
- package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.d.ts +0 -5
- package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.js +0 -39
- package/build/esm/__tests__/support/AbstractFakeDecoratorTest.d.ts +0 -5
- package/build/esm/__tests__/support/AbstractFakeDecoratorTest.js +0 -34
- package/build/esm/__tests__/support/EventFaker.d.ts +0 -5
- package/build/esm/__tests__/support/EventFaker.js +0 -45
- package/build/esm/__tests__/support/RandomViewPlugin.d.ts +0 -2
- package/build/esm/__tests__/support/RandomViewPlugin.js +0 -2
- package/build/esm/__tests__/support/RandomViewPlugin2.d.ts +0 -2
- package/build/esm/__tests__/support/RandomViewPlugin2.js +0 -2
- package/build/esm/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.d.ts +0 -51
- package/build/esm/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +0 -41
- package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +0 -5
- package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.js +0 -9
- package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +0 -7
- package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.js +0 -28
- package/build/esm/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.d.ts +0 -8
- package/build/esm/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.js +0 -26
- package/build/esm/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.d.ts +0 -5
- package/build/esm/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.js +0 -9
- package/build/esm/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.d.ts +0 -8
- package/build/esm/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.js +0 -26
- /package/build/{__tests__/support → esm/tests}/FakeThemeManager.d.ts +0 -0
- /package/build/esm/{__tests__/support → tests}/FakeThemeManager.js +0 -0
- /package/build/{esm/__tests__/support → tests}/FakeThemeManager.d.ts +0 -0
- /package/build/{__tests__/support → tests}/FakeThemeManager.js +0 -0
@@ -1,43 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
import { AuthorizerFactory } from '@sprucelabs/spruce-permission-utils';
|
17
|
-
import { test, assert } from '@sprucelabs/test-utils';
|
18
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest.js';
|
19
|
-
import fake from '../../../tests/decorators/fake.js';
|
20
|
-
let PermissionFixtureTest = class PermissionFixtureTest extends AbstractSpruceFixtureTest {
|
21
|
-
static disablesPermissionsAtStart() {
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
23
|
-
assert.isEqual(process.env.SHOULD_REGISTER_PERMISSIONS, 'false');
|
24
|
-
});
|
25
|
-
}
|
26
|
-
static permissionFixtureShouldUseSharedInstance() {
|
27
|
-
return __awaiter(this, void 0, void 0, function* () {
|
28
|
-
const actual = this.permissions.getAuthorizer();
|
29
|
-
const expected = AuthorizerFactory.getInstance();
|
30
|
-
assert.isEqual(actual, expected);
|
31
|
-
});
|
32
|
-
}
|
33
|
-
};
|
34
|
-
__decorate([
|
35
|
-
test()
|
36
|
-
], PermissionFixtureTest, "disablesPermissionsAtStart", null);
|
37
|
-
__decorate([
|
38
|
-
test()
|
39
|
-
], PermissionFixtureTest, "permissionFixtureShouldUseSharedInstance", null);
|
40
|
-
PermissionFixtureTest = __decorate([
|
41
|
-
fake.login()
|
42
|
-
], PermissionFixtureTest);
|
43
|
-
export default PermissionFixtureTest;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class SeedingDataTest extends AbstractSpruceFixtureTest {
|
3
|
-
private static fixture;
|
4
|
-
private static client;
|
5
|
-
protected static beforeEach(): Promise<void>;
|
6
|
-
protected static hasSeedFixture(): void;
|
7
|
-
protected static canSeedManyOrgs(): Promise<void>;
|
8
|
-
protected static actuallyCreatesOrgs(): Promise<void>;
|
9
|
-
protected static canSeedLocations(): Promise<void>;
|
10
|
-
protected static seedingOrgsCreatesOrganization(): Promise<void>;
|
11
|
-
protected static canPassOrgToLocationSeeder(): Promise<void>;
|
12
|
-
protected static throwsWhenSeedingWithoutCount(): Promise<void>;
|
13
|
-
protected static actuallyCreatesLocations(): Promise<void>;
|
14
|
-
protected static needsStartingPhoneWhenSeedingPeople(options: any): Promise<void>;
|
15
|
-
protected static returnsSeededGuests(options: any, expectedCount: number, base: string): Promise<void>;
|
16
|
-
protected static setsFirstPersonsNumberToTheStartingPhone(phone: string): Promise<void>;
|
17
|
-
protected static canSeedMultipleRolesAtOnce(): Promise<void>;
|
18
|
-
protected static seededPeopleHaveNames(): Promise<void>;
|
19
|
-
protected static peopleAllHaveUniqueNames(): Promise<void>;
|
20
|
-
protected static namesAreOnlyAssignedIfNotYetAssigned(): Promise<void>;
|
21
|
-
private static listPeople;
|
22
|
-
private static seedLocations;
|
23
|
-
private static assertOnlyOneOrgExists;
|
24
|
-
}
|
@@ -1,314 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
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
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
17
|
-
var t = {};
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
19
|
-
t[p] = s[p];
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
23
|
-
t[p[i]] = s[p[i]];
|
24
|
-
}
|
25
|
-
return t;
|
26
|
-
};
|
27
|
-
import { formatPhoneNumber } from '@sprucelabs/schema';
|
28
|
-
import { eventResponseUtil } from '@sprucelabs/spruce-event-utils';
|
29
|
-
import { assert, test } from '@sprucelabs/test-utils';
|
30
|
-
import { errorAssert } from '@sprucelabs/test-utils';
|
31
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest.js';
|
32
|
-
import { DEMO_NUMBER_SEED_FIXTURE, DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE, DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE_ALT, } from '../../../tests/constants.js';
|
33
|
-
import fake from '../../../tests/decorators/fake.js';
|
34
|
-
const sorter = (a, b) => (a.id > b.id ? 1 : -1);
|
35
|
-
let SeedingDataTest = class SeedingDataTest extends AbstractSpruceFixtureTest {
|
36
|
-
static beforeEach() {
|
37
|
-
const _super = Object.create(null, {
|
38
|
-
beforeEach: { get: () => super.beforeEach }
|
39
|
-
});
|
40
|
-
return __awaiter(this, void 0, void 0, function* () {
|
41
|
-
yield _super.beforeEach.call(this);
|
42
|
-
this.client = fake.getClient();
|
43
|
-
this.fixture = this.Fixture('seed');
|
44
|
-
yield this.fixture.resetAccount(DEMO_NUMBER_SEED_FIXTURE);
|
45
|
-
});
|
46
|
-
}
|
47
|
-
static hasSeedFixture() {
|
48
|
-
assert.isTruthy(this.fixture);
|
49
|
-
}
|
50
|
-
static canSeedManyOrgs() {
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
52
|
-
const organizations = yield this.fixture.seedOrganizations({
|
53
|
-
totalOrganizations: 5,
|
54
|
-
});
|
55
|
-
assert.isLength(organizations, 5);
|
56
|
-
});
|
57
|
-
}
|
58
|
-
static actuallyCreatesOrgs() {
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
60
|
-
const organizations = yield this.fixture.seedOrganizations({
|
61
|
-
totalOrganizations: 3,
|
62
|
-
});
|
63
|
-
const results = yield this.client.emit('list-organizations::v2020_12_25', {
|
64
|
-
payload: {
|
65
|
-
shouldOnlyShowMine: true,
|
66
|
-
},
|
67
|
-
});
|
68
|
-
const { organizations: matched } = eventResponseUtil.getFirstResponseOrThrow(results);
|
69
|
-
assert.isLength(matched, 3);
|
70
|
-
assert.isLength(organizations, 3);
|
71
|
-
for (const org of organizations) {
|
72
|
-
const results = yield this.client.emit('get-organization::v2020_12_25', {
|
73
|
-
target: {
|
74
|
-
organizationId: org.id,
|
75
|
-
},
|
76
|
-
});
|
77
|
-
eventResponseUtil.getFirstResponseOrThrow(results);
|
78
|
-
}
|
79
|
-
});
|
80
|
-
}
|
81
|
-
static canSeedLocations() {
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
83
|
-
const { locations } = yield this.fixture.seedAccount({
|
84
|
-
totalLocations: 5,
|
85
|
-
});
|
86
|
-
assert.isLength(locations, 5);
|
87
|
-
});
|
88
|
-
}
|
89
|
-
static seedingOrgsCreatesOrganization() {
|
90
|
-
return __awaiter(this, void 0, void 0, function* () {
|
91
|
-
const { locations } = yield this.fixture.seedAccount({
|
92
|
-
totalLocations: 3,
|
93
|
-
});
|
94
|
-
assert.isLength(locations, 3);
|
95
|
-
yield this.assertOnlyOneOrgExists();
|
96
|
-
});
|
97
|
-
}
|
98
|
-
static canPassOrgToLocationSeeder() {
|
99
|
-
return __awaiter(this, void 0, void 0, function* () {
|
100
|
-
const org = yield this.organizations.seedDemoOrganization();
|
101
|
-
yield this.fixture.seedAccount({
|
102
|
-
totalLocations: 3,
|
103
|
-
organizationId: org.id,
|
104
|
-
});
|
105
|
-
yield this.assertOnlyOneOrgExists();
|
106
|
-
});
|
107
|
-
}
|
108
|
-
static throwsWhenSeedingWithoutCount() {
|
109
|
-
return __awaiter(this, void 0, void 0, function* () {
|
110
|
-
const err = yield assert.doesThrowAsync(() =>
|
111
|
-
//@ts-ignore
|
112
|
-
this.fixture.seedAccount({}));
|
113
|
-
errorAssert.assertError(err, 'MISSING_PARAMETERS', {
|
114
|
-
parameters: ['totalLocations'],
|
115
|
-
});
|
116
|
-
});
|
117
|
-
}
|
118
|
-
static actuallyCreatesLocations() {
|
119
|
-
return __awaiter(this, void 0, void 0, function* () {
|
120
|
-
const { organization, locations } = yield this.seedLocations();
|
121
|
-
const results = yield this.client.emit('list-locations::v2020_12_25', {
|
122
|
-
target: {
|
123
|
-
organizationId: organization.id,
|
124
|
-
},
|
125
|
-
});
|
126
|
-
const { locations: matches } = eventResponseUtil.getFirstResponseOrThrow(results);
|
127
|
-
assert.isLength(matches, 3);
|
128
|
-
for (const location of locations) {
|
129
|
-
const results = yield this.client.emit('get-location::v2020_12_25', {
|
130
|
-
target: {
|
131
|
-
locationId: location.id,
|
132
|
-
},
|
133
|
-
});
|
134
|
-
eventResponseUtil.getFirstResponseOrThrow(results);
|
135
|
-
}
|
136
|
-
});
|
137
|
-
}
|
138
|
-
static needsStartingPhoneWhenSeedingPeople(options) {
|
139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
140
|
-
const err = yield assert.doesThrowAsync(() => this.seedLocations(Object.assign({}, options)));
|
141
|
-
errorAssert.assertError(err, 'MISSING_PARAMETERS', {
|
142
|
-
parameters: ['startingPhone'],
|
143
|
-
});
|
144
|
-
});
|
145
|
-
}
|
146
|
-
static returnsSeededGuests(options, expectedCount, base) {
|
147
|
-
return __awaiter(this, void 0, void 0, function* () {
|
148
|
-
var _a;
|
149
|
-
const _b = yield this.seedLocations(Object.assign({ totalLocations: 1, startingPhone: DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE }, options)), { locations } = _b, rest = __rest(_b, ["locations"]);
|
150
|
-
const withoutOwner = yield this.listPeople(locations[0], base);
|
151
|
-
const withoutOwnerCleaned = withoutOwner.map((_a) => {
|
152
|
-
var { roleIds: _ } = _a, rest = __rest(_a, ["roleIds"]);
|
153
|
-
return rest;
|
154
|
-
});
|
155
|
-
//@ts-ignore
|
156
|
-
const people = (_a = rest[base + 's']) !== null && _a !== void 0 ? _a : [];
|
157
|
-
people.sort(sorter);
|
158
|
-
withoutOwnerCleaned.sort(sorter);
|
159
|
-
assert.isLength(withoutOwner, expectedCount);
|
160
|
-
assert.isEqualDeep(people, withoutOwnerCleaned);
|
161
|
-
});
|
162
|
-
}
|
163
|
-
static setsFirstPersonsNumberToTheStartingPhone(phone) {
|
164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
165
|
-
const { guests } = yield this.seedLocations({
|
166
|
-
totalLocations: 1,
|
167
|
-
totalGuests: 1,
|
168
|
-
startingPhone: phone,
|
169
|
-
});
|
170
|
-
assert.isEqual(guests[0].phone, formatPhoneNumber(phone));
|
171
|
-
});
|
172
|
-
}
|
173
|
-
static canSeedMultipleRolesAtOnce() {
|
174
|
-
return __awaiter(this, void 0, void 0, function* () {
|
175
|
-
const { locations } = yield this.seedLocations({
|
176
|
-
startingPhone: DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE,
|
177
|
-
totalLocations: 1,
|
178
|
-
totalGuests: 3,
|
179
|
-
totalManagers: 2,
|
180
|
-
});
|
181
|
-
const people = yield this.listPeople(locations[0], ['guest', 'manager']);
|
182
|
-
assert.isLength(people, 5);
|
183
|
-
});
|
184
|
-
}
|
185
|
-
static seededPeopleHaveNames() {
|
186
|
-
return __awaiter(this, void 0, void 0, function* () {
|
187
|
-
const { teammates } = yield this.seedLocations({
|
188
|
-
startingPhone: DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE,
|
189
|
-
totalLocations: 1,
|
190
|
-
totalTeammates: 2,
|
191
|
-
});
|
192
|
-
assert.isTruthy(teammates[0].firstName);
|
193
|
-
});
|
194
|
-
}
|
195
|
-
static peopleAllHaveUniqueNames() {
|
196
|
-
return __awaiter(this, void 0, void 0, function* () {
|
197
|
-
const { teammates } = yield this.seedLocations({
|
198
|
-
startingPhone: DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE,
|
199
|
-
totalLocations: 1,
|
200
|
-
totalTeammates: 2,
|
201
|
-
});
|
202
|
-
const names = teammates.map((t) => t.casualName);
|
203
|
-
const unique = [...new Set(names)];
|
204
|
-
assert.isLength(unique, names.length);
|
205
|
-
});
|
206
|
-
}
|
207
|
-
static namesAreOnlyAssignedIfNotYetAssigned() {
|
208
|
-
return __awaiter(this, void 0, void 0, function* () {
|
209
|
-
const { client } = yield this.people.loginAsDemoPerson(DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE);
|
210
|
-
const firstName = `Test person:: ${Math.random()}`;
|
211
|
-
const lastName = `${Math.random()}`;
|
212
|
-
yield client.emitAndFlattenResponses('update-person::v2020_12_25', {
|
213
|
-
payload: {
|
214
|
-
firstName,
|
215
|
-
lastName,
|
216
|
-
},
|
217
|
-
});
|
218
|
-
const { teammates } = yield this.seedLocations({
|
219
|
-
startingPhone: DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE,
|
220
|
-
totalLocations: 1,
|
221
|
-
totalTeammates: 1,
|
222
|
-
});
|
223
|
-
const [tm1] = teammates;
|
224
|
-
assert.isEqual(tm1.casualName, firstName + ' ' + lastName[0] + '.');
|
225
|
-
});
|
226
|
-
}
|
227
|
-
static listPeople(location, base) {
|
228
|
-
return __awaiter(this, void 0, void 0, function* () {
|
229
|
-
const people = yield this.people.listPeople({
|
230
|
-
locationId: location.id,
|
231
|
-
organizationId: location.organizationId,
|
232
|
-
roleBases: Array.isArray(base) ? base : [base],
|
233
|
-
shouldIncludePrivateFields: true,
|
234
|
-
});
|
235
|
-
const withoutOwner = people.filter((p) => p.id !== fake.getPerson().id);
|
236
|
-
return withoutOwner;
|
237
|
-
});
|
238
|
-
}
|
239
|
-
static seedLocations(options) {
|
240
|
-
return __awaiter(this, void 0, void 0, function* () {
|
241
|
-
const org = yield this.organizations.seedDemoOrganization();
|
242
|
-
const results = yield this.fixture.seedAccount(Object.assign({ totalLocations: 3, organizationId: org.id }, options));
|
243
|
-
return Object.assign({ organization: org }, results);
|
244
|
-
});
|
245
|
-
}
|
246
|
-
static assertOnlyOneOrgExists() {
|
247
|
-
return __awaiter(this, void 0, void 0, function* () {
|
248
|
-
const results = yield this.client.emit('list-organizations::v2020_12_25', {
|
249
|
-
payload: {
|
250
|
-
shouldOnlyShowMine: true,
|
251
|
-
},
|
252
|
-
});
|
253
|
-
const { organizations } = eventResponseUtil.getFirstResponseOrThrow(results);
|
254
|
-
assert.isLength(organizations, 1);
|
255
|
-
assert.isObject(organizations[0].address);
|
256
|
-
});
|
257
|
-
}
|
258
|
-
};
|
259
|
-
__decorate([
|
260
|
-
test()
|
261
|
-
], SeedingDataTest, "hasSeedFixture", null);
|
262
|
-
__decorate([
|
263
|
-
test()
|
264
|
-
], SeedingDataTest, "canSeedManyOrgs", null);
|
265
|
-
__decorate([
|
266
|
-
test()
|
267
|
-
], SeedingDataTest, "actuallyCreatesOrgs", null);
|
268
|
-
__decorate([
|
269
|
-
test()
|
270
|
-
], SeedingDataTest, "canSeedLocations", null);
|
271
|
-
__decorate([
|
272
|
-
test()
|
273
|
-
], SeedingDataTest, "seedingOrgsCreatesOrganization", null);
|
274
|
-
__decorate([
|
275
|
-
test()
|
276
|
-
], SeedingDataTest, "canPassOrgToLocationSeeder", null);
|
277
|
-
__decorate([
|
278
|
-
test()
|
279
|
-
], SeedingDataTest, "throwsWhenSeedingWithoutCount", null);
|
280
|
-
__decorate([
|
281
|
-
test()
|
282
|
-
], SeedingDataTest, "actuallyCreatesLocations", null);
|
283
|
-
__decorate([
|
284
|
-
test('missing starting phone with totalGuests', { totalGuests: 10 }),
|
285
|
-
test('missing starting phone with totalTeammates', { totalTeammates: 10 })
|
286
|
-
], SeedingDataTest, "needsStartingPhoneWhenSeedingPeople", null);
|
287
|
-
__decorate([
|
288
|
-
test('can seed 3 guests', { totalGuests: 3 }, 3, 'guest'),
|
289
|
-
test('can seed 5 guests', { totalGuests: 5 }, 5, 'guest'),
|
290
|
-
test('can seed 2 teammates', { totalTeammates: 2 }, 2, 'teammate'),
|
291
|
-
test('can seed 3 managers', { totalManagers: 3 }, 3, 'manager'),
|
292
|
-
test('can seed 3 groupManager', { totalGroupManagers: 3 }, 3, 'groupManager'),
|
293
|
-
test('can seed 1 owners', { totalOwners: 1 }, 1, 'owner')
|
294
|
-
], SeedingDataTest, "returnsSeededGuests", null);
|
295
|
-
__decorate([
|
296
|
-
test('seeds with starting phone 1', DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE),
|
297
|
-
test('seeds with starting phone 2', DEMO_NUMBER_SEED_FIXTURE_STARTING_PHONE_ALT)
|
298
|
-
], SeedingDataTest, "setsFirstPersonsNumberToTheStartingPhone", null);
|
299
|
-
__decorate([
|
300
|
-
test()
|
301
|
-
], SeedingDataTest, "canSeedMultipleRolesAtOnce", null);
|
302
|
-
__decorate([
|
303
|
-
test()
|
304
|
-
], SeedingDataTest, "seededPeopleHaveNames", null);
|
305
|
-
__decorate([
|
306
|
-
test()
|
307
|
-
], SeedingDataTest, "peopleAllHaveUniqueNames", null);
|
308
|
-
__decorate([
|
309
|
-
test()
|
310
|
-
], SeedingDataTest, "namesAreOnlyAssignedIfNotYetAssigned", null);
|
311
|
-
SeedingDataTest = __decorate([
|
312
|
-
fake.login(DEMO_NUMBER_SEED_FIXTURE)
|
313
|
-
], SeedingDataTest);
|
314
|
-
export default SeedingDataTest;
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest';
|
2
|
-
import { DummyStore } from '../databases/DummyStore';
|
3
|
-
export default class UsingDecoratorsTest extends AbstractSpruceFixtureTest {
|
4
|
-
private static lastClient;
|
5
|
-
private static goodStore;
|
6
|
-
protected static beforeEach(): Promise<void>;
|
7
|
-
protected static afterAll(): Promise<void>;
|
8
|
-
protected static loginSetsDefaultClient(): Promise<void>;
|
9
|
-
protected static retainsClientBetweenTests(): Promise<void>;
|
10
|
-
protected static canSeedThreeOrgs(): Promise<void>;
|
11
|
-
protected static canSeedFiveOrgs(): Promise<void>;
|
12
|
-
protected static canSeedTwoLocations(): Promise<void>;
|
13
|
-
protected static seededLocationsArePublic(): Promise<void>;
|
14
|
-
protected static canSeedTenLocations(): Promise<void>;
|
15
|
-
protected static locationUsesLatestOrg(): Promise<void>;
|
16
|
-
protected static canSeedStores(): Promise<void>;
|
17
|
-
protected static logsInViewAuthenticator(): void;
|
18
|
-
protected static passesThroughArgs(one: number, two: number, three: number): void;
|
19
|
-
protected static passesThroughArgs2(one: any): void;
|
20
|
-
protected static seedsAddToBeforeEach(): Promise<void>;
|
21
|
-
protected static seedsAddToBeforeEachButNotLastRun(): Promise<void>;
|
22
|
-
protected static canGetClientOffLogin(): Promise<void>;
|
23
|
-
protected static storeGetsVariablesPassed(): Promise<void>;
|
24
|
-
protected static storeGetsVariablesPassed2(): Promise<void>;
|
25
|
-
protected static canSeedPeople(baseCounts: Record<string, number>): Promise<void>;
|
26
|
-
protected static canSeedMorePeople(baseCounts: Record<string, number>): Promise<void>;
|
27
|
-
private static assertExpectedSeededPeople;
|
28
|
-
private static assertCountOrgs;
|
29
|
-
private static assertCountLocations;
|
30
|
-
private static assertCountGoods;
|
31
|
-
private static assertTotalPeopleByRole;
|
32
|
-
}
|
33
|
-
declare module '@sprucelabs/data-stores/build/types/stores.types' {
|
34
|
-
interface StoreMap {
|
35
|
-
dummies: DummyStore;
|
36
|
-
}
|
37
|
-
}
|