@sprucelabs/spruce-test-fixtures 62.2.24 → 62.2.25
Sign up to get free protection for your applications and to get access to all the features.
- 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/FakeThemeManager.d.ts +0 -8
- package/build/__tests__/support/FakeThemeManager.js +0 -40
- 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/FakeThemeManager.d.ts +0 -8
- package/build/esm/__tests__/support/FakeThemeManager.js +0 -37
- 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
@@ -1,95 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const schema_1 = require("@sprucelabs/schema");
|
13
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
14
|
-
const test_utils_2 = require("@sprucelabs/test-utils");
|
15
|
-
const __1 = require("../..");
|
16
|
-
const phoneNumberIncrementor_1 = __importDefault(require("../../utilities/phoneNumberIncrementor"));
|
17
|
-
class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
|
18
|
-
static async canCreatePhoneNumberIncrementor() {
|
19
|
-
test_utils_1.assert.isTruthy(phoneNumberIncrementor_1.default);
|
20
|
-
test_utils_1.assert.isFunction(phoneNumberIncrementor_1.default.generate);
|
21
|
-
}
|
22
|
-
static async throwsWithMissingOptions(options, 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
|
-
parameters,
|
26
|
-
});
|
27
|
-
}
|
28
|
-
static async throwsWithBadNumber(phone) {
|
29
|
-
const err = await test_utils_1.assert.doesThrowAsync(() => this.generate({
|
30
|
-
startingPhone: phone,
|
31
|
-
}));
|
32
|
-
test_utils_2.errorAssert.assertError(err, 'INVALID_PARAMETERS', {
|
33
|
-
parameters: ['startingPhone'],
|
34
|
-
});
|
35
|
-
}
|
36
|
-
static async generatesExpectedNumberOfNumbers(total) {
|
37
|
-
const numbers = await this.generate({
|
38
|
-
totalToGenerate: total,
|
39
|
-
});
|
40
|
-
test_utils_1.assert.isLength(numbers, total);
|
41
|
-
}
|
42
|
-
static async handlesFormattedNumber() {
|
43
|
-
await this.generate({
|
44
|
-
startingPhone: (0, schema_1.formatPhoneNumber)('000-000-0000', false),
|
45
|
-
});
|
46
|
-
}
|
47
|
-
static async generatesExpectedNumbers(expected) {
|
48
|
-
const numbers = await this.generate({
|
49
|
-
totalToGenerate: expected.length,
|
50
|
-
});
|
51
|
-
test_utils_1.assert.isEqualDeep(numbers, expected);
|
52
|
-
}
|
53
|
-
static async generateNumbersFromDifferentStartNumber() {
|
54
|
-
const numbers = this.generate({ startingPhone: '001-000-0001' });
|
55
|
-
test_utils_1.assert.isEqualDeep(numbers, ['+1 001-000-0001', '+1 001-000-0002']);
|
56
|
-
}
|
57
|
-
static generate(options) {
|
58
|
-
return phoneNumberIncrementor_1.default.generate(Object.assign({ startingPhone: '000-000-0000', totalToGenerate: 2 }, options));
|
59
|
-
}
|
60
|
-
}
|
61
|
-
exports.default = PhoneNumberIncrementorTest;
|
62
|
-
__decorate([
|
63
|
-
(0, test_utils_1.test)()
|
64
|
-
], PhoneNumberIncrementorTest, "canCreatePhoneNumberIncrementor", null);
|
65
|
-
__decorate([
|
66
|
-
(0, test_utils_1.test)('throws if all options missing', {}, [
|
67
|
-
'startingPhone',
|
68
|
-
'totalToGenerate',
|
69
|
-
]),
|
70
|
-
(0, test_utils_1.test)('throws if totalToGenerate options missing', { startingPhone: '234234' }, ['totalToGenerate']),
|
71
|
-
(0, test_utils_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, ['startingPhone'])
|
72
|
-
], PhoneNumberIncrementorTest, "throwsWithMissingOptions", null);
|
73
|
-
__decorate([
|
74
|
-
(0, test_utils_1.test)('throws if phone is 234234', '234234'),
|
75
|
-
(0, test_utils_1.test)('throws if phone is 0000', '000')
|
76
|
-
], PhoneNumberIncrementorTest, "throwsWithBadNumber", null);
|
77
|
-
__decorate([
|
78
|
-
(0, test_utils_1.test)('generates 10 numbers', 10),
|
79
|
-
(0, test_utils_1.test)('generates 20 numbers', 20)
|
80
|
-
], PhoneNumberIncrementorTest, "generatesExpectedNumberOfNumbers", null);
|
81
|
-
__decorate([
|
82
|
-
(0, test_utils_1.test)()
|
83
|
-
], PhoneNumberIncrementorTest, "handlesFormattedNumber", null);
|
84
|
-
__decorate([
|
85
|
-
(0, test_utils_1.test)('generates 2 expected', ['+1 000-000-0000', '+1 000-000-0001']),
|
86
|
-
(0, test_utils_1.test)('generates 4 expected', [
|
87
|
-
'+1 000-000-0000',
|
88
|
-
'+1 000-000-0001',
|
89
|
-
'+1 000-000-0002',
|
90
|
-
'+1 000-000-0003',
|
91
|
-
])
|
92
|
-
], PhoneNumberIncrementorTest, "generatesExpectedNumbers", null);
|
93
|
-
__decorate([
|
94
|
-
(0, test_utils_1.test)()
|
95
|
-
], PhoneNumberIncrementorTest, "generateNumbersFromDifferentStartNumber", null);
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest {
|
3
|
-
protected static beforeAll(): Promise<void>;
|
4
|
-
protected static delayToGivesSeederTimeToWrite(): Promise<void>;
|
5
|
-
protected static shouldHaveNoLocations(): Promise<void>;
|
6
|
-
protected static nothing(): Promise<void>;
|
7
|
-
private static listLocations;
|
8
|
-
}
|
@@ -1,67 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
|
13
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
14
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
15
|
-
const constants_1 = require("../../tests/constants");
|
16
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
17
|
-
const seed_1 = __importDefault(require("../../tests/decorators/seed"));
|
18
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
19
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
20
|
-
let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest_1.default {
|
21
|
-
static async beforeAll() {
|
22
|
-
await super.beforeAll();
|
23
|
-
const { client } = await this.people.loginAsDemoPerson(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET_LOCATION);
|
24
|
-
const orgResults = await client.emit('create-organization::v2020_12_25', {
|
25
|
-
payload: {
|
26
|
-
name: 'Test',
|
27
|
-
},
|
28
|
-
});
|
29
|
-
const { organization } = spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(orgResults);
|
30
|
-
//@ts-ignore
|
31
|
-
await client.emit('create-location::v2020_12_25', {
|
32
|
-
target: {
|
33
|
-
organizationId: organization.id,
|
34
|
-
},
|
35
|
-
payload: {
|
36
|
-
name: 'a location',
|
37
|
-
address: {},
|
38
|
-
},
|
39
|
-
});
|
40
|
-
}
|
41
|
-
static async delayToGivesSeederTimeToWrite() {
|
42
|
-
await this.wait(4000);
|
43
|
-
}
|
44
|
-
static async shouldHaveNoLocations() {
|
45
|
-
await test_utils_1.assert.doesThrowAsync(() => this.listLocations());
|
46
|
-
}
|
47
|
-
static async nothing() { }
|
48
|
-
static async listLocations() {
|
49
|
-
return await this.locations.listLocations();
|
50
|
-
}
|
51
|
-
};
|
52
|
-
__decorate([
|
53
|
-
(0, test_utils_1.test)()
|
54
|
-
], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
|
55
|
-
__decorate([
|
56
|
-
(0, test_utils_1.test)()
|
57
|
-
], ResettingAccountBeforeAllTestsTest, "shouldHaveNoLocations", null);
|
58
|
-
__decorate([
|
59
|
-
(0, test_utils_1.test)(),
|
60
|
-
(0, seed_1.default)('locations', 1)
|
61
|
-
], ResettingAccountBeforeAllTestsTest, "nothing", null);
|
62
|
-
ResettingAccountBeforeAllTestsTest = __decorate([
|
63
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET_LOCATION)
|
64
|
-
], ResettingAccountBeforeAllTestsTest);
|
65
|
-
exports.default = ResettingAccountBeforeAllTestsTest;
|
66
|
-
//@ts-ignore
|
67
|
-
ResettingAccountBeforeAllTestsTest.cwd = process.cwd();
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
13
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
14
|
-
const constants_1 = require("../../tests/constants");
|
15
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
16
|
-
const seed_1 = __importDefault(require("../../tests/decorators/seed"));
|
17
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
18
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
19
|
-
let ResettingAccountAfterAllTestsTest = class ResettingAccountAfterAllTestsTest extends AbstractSpruceFixtureTest_1.default {
|
20
|
-
static async afterAll() {
|
21
|
-
await super.afterAll();
|
22
|
-
const orgs = await this.organizations.listOrganizations(constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET);
|
23
|
-
test_utils_1.assert.isLength(orgs, 0);
|
24
|
-
}
|
25
|
-
static async seedMoar() {
|
26
|
-
await this.organizations.seedDemoOrganization({
|
27
|
-
phone: constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET,
|
28
|
-
});
|
29
|
-
}
|
30
|
-
};
|
31
|
-
__decorate([
|
32
|
-
(0, test_utils_1.test)(),
|
33
|
-
(0, seed_1.default)('organizations', 1)
|
34
|
-
], ResettingAccountAfterAllTestsTest, "seedMoar", null);
|
35
|
-
ResettingAccountAfterAllTestsTest = __decorate([
|
36
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET)
|
37
|
-
], ResettingAccountAfterAllTestsTest);
|
38
|
-
exports.default = ResettingAccountAfterAllTestsTest;
|
39
|
-
//@ts-ignore
|
40
|
-
ResettingAccountAfterAllTestsTest.cwd = process.cwd();
|
41
|
-
void ResettingAccountAfterAllTestsTest.Fixture('organization').seedDemoOrganization({
|
42
|
-
name: 'Outside of test',
|
43
|
-
phone: constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET,
|
44
|
-
});
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest {
|
3
|
-
protected static beforeAll(): Promise<void>;
|
4
|
-
protected static delayToGivesSeederTimeToWrite(): Promise<void>;
|
5
|
-
protected static shouldHaveNoOrgs(): Promise<void>;
|
6
|
-
protected static nothing(): Promise<void>;
|
7
|
-
private static listOrgs;
|
8
|
-
}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
13
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
14
|
-
const constants_1 = require("../../tests/constants");
|
15
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
16
|
-
const seed_1 = __importDefault(require("../../tests/decorators/seed"));
|
17
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
18
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
19
|
-
let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest_1.default {
|
20
|
-
static async beforeAll() {
|
21
|
-
await this.wait(5000);
|
22
|
-
await super.beforeAll();
|
23
|
-
}
|
24
|
-
static async delayToGivesSeederTimeToWrite() {
|
25
|
-
await this.wait(1000);
|
26
|
-
}
|
27
|
-
static async shouldHaveNoOrgs() {
|
28
|
-
const orgs = await this.listOrgs();
|
29
|
-
test_utils_1.assert.isLength(orgs, 0);
|
30
|
-
}
|
31
|
-
static async nothing() { }
|
32
|
-
static async listOrgs() {
|
33
|
-
return await this.organizations.listOrganizations();
|
34
|
-
}
|
35
|
-
};
|
36
|
-
__decorate([
|
37
|
-
(0, test_utils_1.test)()
|
38
|
-
], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
|
39
|
-
__decorate([
|
40
|
-
(0, test_utils_1.test)()
|
41
|
-
], ResettingAccountBeforeAllTestsTest, "shouldHaveNoOrgs", null);
|
42
|
-
__decorate([
|
43
|
-
(0, test_utils_1.test)(),
|
44
|
-
(0, seed_1.default)('organizations', 1)
|
45
|
-
], ResettingAccountBeforeAllTestsTest, "nothing", null);
|
46
|
-
ResettingAccountBeforeAllTestsTest = __decorate([
|
47
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET)
|
48
|
-
], ResettingAccountBeforeAllTestsTest);
|
49
|
-
exports.default = ResettingAccountBeforeAllTestsTest;
|
50
|
-
//@ts-ignore
|
51
|
-
ResettingAccountBeforeAllTestsTest.cwd = process.cwd();
|
52
|
-
void ResettingAccountBeforeAllTestsTest.Fixture('organization').seedDemoOrganization({
|
53
|
-
name: 'Outside of test',
|
54
|
-
phone: constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET,
|
55
|
-
});
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { AbstractSpruceFixtureTest } from '../..';
|
2
|
-
export default class ResettingFixtureFieldsBeforeEachTest extends AbstractSpruceFixtureTest {
|
3
|
-
protected static shouldBeAbleToGetAllFixtures(): void;
|
4
|
-
protected static privatePropsNotSetAtFirst(): Promise<void>;
|
5
|
-
protected static canSetEachPrivateProp(): Promise<void>;
|
6
|
-
protected static afterEachClearsLocalProps(): Promise<void>;
|
7
|
-
private static assertLocalPropsAreCleared;
|
8
|
-
private static getFixture;
|
9
|
-
private static getPrivateProp;
|
10
|
-
}
|
@@ -1,137 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const data_stores_1 = require("@sprucelabs/data-stores");
|
13
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
14
|
-
const __1 = require("../..");
|
15
|
-
const PermissionFixture_1 = __importDefault(require("../../tests/fixtures/PermissionFixture"));
|
16
|
-
const SeedFixture_1 = __importDefault(require("../../tests/fixtures/SeedFixture"));
|
17
|
-
const toCheck = [
|
18
|
-
{
|
19
|
-
prop: 'views',
|
20
|
-
privatePropName: '_views',
|
21
|
-
fixtureName: 'view',
|
22
|
-
instanceOf: __1.ViewFixture,
|
23
|
-
},
|
24
|
-
{
|
25
|
-
prop: 'roles',
|
26
|
-
privatePropName: '_roles',
|
27
|
-
fixtureName: 'role',
|
28
|
-
instanceOf: __1.RoleFixture,
|
29
|
-
},
|
30
|
-
{
|
31
|
-
prop: 'locations',
|
32
|
-
privatePropName: '_locations',
|
33
|
-
fixtureName: 'location',
|
34
|
-
instanceOf: __1.LocationFixture,
|
35
|
-
},
|
36
|
-
{
|
37
|
-
prop: 'organizations',
|
38
|
-
privatePropName: '_organizations',
|
39
|
-
fixtureName: 'organization',
|
40
|
-
instanceOf: __1.OrganizationFixture,
|
41
|
-
},
|
42
|
-
{
|
43
|
-
prop: 'people',
|
44
|
-
privatePropName: '_people',
|
45
|
-
fixtureName: 'person',
|
46
|
-
instanceOf: __1.PersonFixture,
|
47
|
-
},
|
48
|
-
{
|
49
|
-
prop: 'seeder',
|
50
|
-
privatePropName: '_seeder',
|
51
|
-
fixtureName: 'seed',
|
52
|
-
instanceOf: SeedFixture_1.default,
|
53
|
-
},
|
54
|
-
{
|
55
|
-
prop: 'skills',
|
56
|
-
privatePropName: '_skills',
|
57
|
-
fixtureName: 'skill',
|
58
|
-
instanceOf: __1.SkillFixture,
|
59
|
-
},
|
60
|
-
{
|
61
|
-
prop: 'mercury',
|
62
|
-
privatePropName: '_mercury',
|
63
|
-
fixtureName: 'mercury',
|
64
|
-
instanceOf: __1.MercuryFixture,
|
65
|
-
},
|
66
|
-
{
|
67
|
-
prop: 'database',
|
68
|
-
privatePropName: '_database',
|
69
|
-
fixtureName: 'database',
|
70
|
-
instanceOf: data_stores_1.DatabaseFixture,
|
71
|
-
},
|
72
|
-
{
|
73
|
-
prop: 'stores',
|
74
|
-
privatePropName: '_stores',
|
75
|
-
fixtureName: 'store',
|
76
|
-
instanceOf: __1.StoreFixture,
|
77
|
-
},
|
78
|
-
{
|
79
|
-
prop: 'permissions',
|
80
|
-
privatePropName: '_permissions',
|
81
|
-
fixtureName: 'permission',
|
82
|
-
instanceOf: PermissionFixture_1.default,
|
83
|
-
},
|
84
|
-
];
|
85
|
-
class ResettingFixtureFieldsBeforeEachTest extends __1.AbstractSpruceFixtureTest {
|
86
|
-
static shouldBeAbleToGetAllFixtures() {
|
87
|
-
for (const check of toCheck) {
|
88
|
-
const fixture = this.getFixture(check);
|
89
|
-
test_utils_1.assert.isTruthy(fixture, `No fixture found for ${check.fixtureName}`);
|
90
|
-
const local = this.getPrivateProp(check);
|
91
|
-
test_utils_1.assert.isTruthy(local, `Did not set this.${check.privatePropName}`);
|
92
|
-
test_utils_1.assert.isEqual(fixture, local);
|
93
|
-
}
|
94
|
-
}
|
95
|
-
static async privatePropsNotSetAtFirst() {
|
96
|
-
this.assertLocalPropsAreCleared();
|
97
|
-
}
|
98
|
-
static async canSetEachPrivateProp() {
|
99
|
-
for (const check of toCheck) {
|
100
|
-
//@ts-ignore
|
101
|
-
this[check.prop] = this.Fixture(check.fixtureName);
|
102
|
-
}
|
103
|
-
}
|
104
|
-
static async afterEachClearsLocalProps() {
|
105
|
-
for (const check of toCheck) {
|
106
|
-
this.getFixture(check);
|
107
|
-
}
|
108
|
-
await this.afterEach();
|
109
|
-
this.assertLocalPropsAreCleared();
|
110
|
-
}
|
111
|
-
static assertLocalPropsAreCleared() {
|
112
|
-
for (const check of toCheck) {
|
113
|
-
test_utils_1.assert.isFalsy(this.getPrivateProp(check));
|
114
|
-
}
|
115
|
-
}
|
116
|
-
static getFixture(check) {
|
117
|
-
//@ts-ignore
|
118
|
-
return this[check.prop];
|
119
|
-
}
|
120
|
-
static getPrivateProp(check) {
|
121
|
-
//@ts-ignore
|
122
|
-
return this[check.privatePropName];
|
123
|
-
}
|
124
|
-
}
|
125
|
-
exports.default = ResettingFixtureFieldsBeforeEachTest;
|
126
|
-
__decorate([
|
127
|
-
(0, test_utils_1.test)()
|
128
|
-
], ResettingFixtureFieldsBeforeEachTest, "shouldBeAbleToGetAllFixtures", null);
|
129
|
-
__decorate([
|
130
|
-
(0, test_utils_1.test)()
|
131
|
-
], ResettingFixtureFieldsBeforeEachTest, "privatePropsNotSetAtFirst", null);
|
132
|
-
__decorate([
|
133
|
-
(0, test_utils_1.test)()
|
134
|
-
], ResettingFixtureFieldsBeforeEachTest, "canSetEachPrivateProp", null);
|
135
|
-
__decorate([
|
136
|
-
(0, test_utils_1.test)()
|
137
|
-
], ResettingFixtureFieldsBeforeEachTest, "afterEachClearsLocalProps", null);
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export declare class ResettingLocalEventListeningBeforeSeedingTest extends AbstractSpruceFixtureTest {
|
3
|
-
private static hitCount;
|
4
|
-
protected static beforeEach(): Promise<void>;
|
5
|
-
protected static testClientIsResetBeforeSeeding(): Promise<void>;
|
6
|
-
protected static hitCountShouldBeZero(): Promise<void>;
|
7
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.ResettingLocalEventListeningBeforeSeedingTest = void 0;
|
13
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
14
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
15
|
-
const constants_1 = require("../../tests/constants");
|
16
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
17
|
-
const seed_1 = __importDefault(require("../../tests/decorators/seed"));
|
18
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
19
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
20
|
-
let ResettingLocalEventListeningBeforeSeedingTest = class ResettingLocalEventListeningBeforeSeedingTest extends AbstractSpruceFixtureTest_1.default {
|
21
|
-
static async beforeEach() {
|
22
|
-
await super.beforeEach();
|
23
|
-
}
|
24
|
-
static async testClientIsResetBeforeSeeding() {
|
25
|
-
await login_1.default.getClient().on('create-organization::v2020_12_25', () => {
|
26
|
-
this.hitCount++;
|
27
|
-
return {
|
28
|
-
organization: {
|
29
|
-
id: (0, test_utils_1.generateId)(),
|
30
|
-
dateCreated: new Date().getTime(),
|
31
|
-
name: (0, test_utils_1.generateId)(),
|
32
|
-
slug: (0, test_utils_1.generateId)(),
|
33
|
-
},
|
34
|
-
};
|
35
|
-
});
|
36
|
-
}
|
37
|
-
static async hitCountShouldBeZero() {
|
38
|
-
test_utils_1.assert.isEqual(this.hitCount, 0);
|
39
|
-
}
|
40
|
-
};
|
41
|
-
exports.ResettingLocalEventListeningBeforeSeedingTest = ResettingLocalEventListeningBeforeSeedingTest;
|
42
|
-
ResettingLocalEventListeningBeforeSeedingTest.hitCount = 0;
|
43
|
-
__decorate([
|
44
|
-
(0, seed_1.default)('organizations', 1)
|
45
|
-
], ResettingLocalEventListeningBeforeSeedingTest, "beforeEach", null);
|
46
|
-
__decorate([
|
47
|
-
(0, test_utils_1.test)()
|
48
|
-
], ResettingLocalEventListeningBeforeSeedingTest, "testClientIsResetBeforeSeeding", null);
|
49
|
-
__decorate([
|
50
|
-
(0, test_utils_1.test)()
|
51
|
-
], ResettingLocalEventListeningBeforeSeedingTest, "hitCountShouldBeZero", null);
|
52
|
-
exports.ResettingLocalEventListeningBeforeSeedingTest = ResettingLocalEventListeningBeforeSeedingTest = __decorate([
|
53
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_TEST_CLIENT_RECENT)
|
54
|
-
], ResettingLocalEventListeningBeforeSeedingTest);
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class RetainsContractWhenLoggingInUsingDecorator extends AbstractSpruceFixtureTest {
|
3
|
-
private static client;
|
4
|
-
protected static beforeEach(): Promise<void>;
|
5
|
-
protected static clientStillHasContract(): Promise<void>;
|
6
|
-
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
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;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
9
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
13
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
14
|
-
const constants_1 = require("../../tests/constants");
|
15
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
16
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
17
|
-
const StoreFixture_1 = __importDefault(require("../../tests/fixtures/StoreFixture"));
|
18
|
-
// eslint-disable-next-line spruce/prohibit-import-from-build-folder
|
19
|
-
const Good_store_1 = __importDefault(require("../testDirsAndFiles/one-good-store-skill/build/stores/Good.store"));
|
20
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
21
|
-
let RetainsContractWhenLoggingInUsingDecorator = class RetainsContractWhenLoggingInUsingDecorator extends AbstractSpruceFixtureTest_1.default {
|
22
|
-
static async beforeEach() {
|
23
|
-
await super.beforeEach();
|
24
|
-
this.client = login_1.default.getClient();
|
25
|
-
}
|
26
|
-
static async clientStillHasContract() {
|
27
|
-
await this.client.on('whoami::v2020_12_25', () => ({
|
28
|
-
auth: {},
|
29
|
-
type: 'authenticated',
|
30
|
-
}));
|
31
|
-
}
|
32
|
-
};
|
33
|
-
__decorate([
|
34
|
-
(0, test_utils_1.test)()
|
35
|
-
], RetainsContractWhenLoggingInUsingDecorator, "clientStillHasContract", null);
|
36
|
-
RetainsContractWhenLoggingInUsingDecorator = __decorate([
|
37
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_RESET)
|
38
|
-
], RetainsContractWhenLoggingInUsingDecorator);
|
39
|
-
exports.default = RetainsContractWhenLoggingInUsingDecorator;
|
40
|
-
StoreFixture_1.default.setStore('good', Good_store_1.default);
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class RoleFixtureTest extends AbstractSpruceFixtureTest {
|
3
|
-
private static fixture;
|
4
|
-
private static client;
|
5
|
-
protected static beforeEach(): Promise<void>;
|
6
|
-
protected static hasRoleFixture(): void;
|
7
|
-
protected static cantListRolesWithoutOrg(): Promise<void>;
|
8
|
-
protected static listsValidRoles(): Promise<void>;
|
9
|
-
protected static listsWorkingRolesByDefault(): Promise<void>;
|
10
|
-
protected static listMetaRolesWithOptions(): Promise<void>;
|
11
|
-
protected static canPassOwnOrg(): Promise<void>;
|
12
|
-
private static getNewestOrg;
|
13
|
-
private static assertListedRolesMatchExpected;
|
14
|
-
private static listRoles;
|
15
|
-
}
|