@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
package/package.json
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
"@sprucelabs/spruce-test-fixtures"
|
14
14
|
]
|
15
15
|
},
|
16
|
-
"version": "62.2.
|
16
|
+
"version": "62.2.25",
|
17
17
|
"files": [
|
18
18
|
"build/**/*",
|
19
19
|
"!build/__tests__",
|
@@ -61,34 +61,34 @@
|
|
61
61
|
"lint.tsc": "tsc -p . --noEmit"
|
62
62
|
},
|
63
63
|
"dependencies": {
|
64
|
-
"@sprucelabs/data-stores": "^28.1.
|
65
|
-
"@sprucelabs/error": "^6.0.
|
66
|
-
"@sprucelabs/heartwood-view-controllers": "^110.
|
67
|
-
"@sprucelabs/mercury-client": "^42.0.
|
68
|
-
"@sprucelabs/mercury-core-events": "^24.0.
|
69
|
-
"@sprucelabs/mercury-event-emitter": "^42.0.
|
64
|
+
"@sprucelabs/data-stores": "^28.1.65",
|
65
|
+
"@sprucelabs/error": "^6.0.67",
|
66
|
+
"@sprucelabs/heartwood-view-controllers": "^110.5.0",
|
67
|
+
"@sprucelabs/mercury-client": "^42.0.152",
|
68
|
+
"@sprucelabs/mercury-core-events": "^24.0.142",
|
69
|
+
"@sprucelabs/mercury-event-emitter": "^42.0.152",
|
70
70
|
"@sprucelabs/schema": "^30.0.109",
|
71
|
-
"@sprucelabs/spruce-core-schemas": "^40.1.
|
72
|
-
"@sprucelabs/spruce-event-utils": "^40.0.
|
73
|
-
"@sprucelabs/spruce-permission-utils": "^8.0.
|
74
|
-
"@sprucelabs/spruce-skill-booter": "^62.2.
|
75
|
-
"@sprucelabs/spruce-skill-utils": "^31.0.
|
71
|
+
"@sprucelabs/spruce-core-schemas": "^40.1.55",
|
72
|
+
"@sprucelabs/spruce-event-utils": "^40.0.126",
|
73
|
+
"@sprucelabs/spruce-permission-utils": "^8.0.184",
|
74
|
+
"@sprucelabs/spruce-skill-booter": "^62.2.25",
|
75
|
+
"@sprucelabs/spruce-skill-utils": "^31.0.127",
|
76
76
|
"@sprucelabs/test-utils": "^5.1.2",
|
77
77
|
"dotenv": "^16.4.5",
|
78
78
|
"unique-names-generator": "^4.7.1"
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"@sprucelabs/esm-postbuild": "^6.0.
|
82
|
-
"@sprucelabs/jest-json-reporter": "^8.0.
|
83
|
-
"@sprucelabs/mercury-types": "^47.0.
|
84
|
-
"@sprucelabs/resolve-path-aliases": "^2.0.
|
81
|
+
"@sprucelabs/esm-postbuild": "^6.0.51",
|
82
|
+
"@sprucelabs/jest-json-reporter": "^8.0.70",
|
83
|
+
"@sprucelabs/mercury-types": "^47.0.114",
|
84
|
+
"@sprucelabs/resolve-path-aliases": "^2.0.46",
|
85
85
|
"@sprucelabs/semantic-release": "^5.0.1",
|
86
|
-
"@sprucelabs/test": "^9.0.
|
86
|
+
"@sprucelabs/test": "^9.0.32",
|
87
87
|
"@types/node": "17.0.5",
|
88
88
|
"calendar-utils": "^0.10.4",
|
89
89
|
"chokidar-cli": "^3.0.0",
|
90
90
|
"eslint": "^9.5.0",
|
91
|
-
"eslint-config-spruce": "^11.2.
|
91
|
+
"eslint-config-spruce": "^11.2.25",
|
92
92
|
"jest": "^29.7.0",
|
93
93
|
"jest-circus": "^29.7.0",
|
94
94
|
"prettier": "^3.3.2",
|
@@ -114,5 +114,5 @@
|
|
114
114
|
"^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
|
115
115
|
}
|
116
116
|
},
|
117
|
-
"gitHead": "
|
117
|
+
"gitHead": "c477b55a1974aa716dcccea98b36d0fb8976317b"
|
118
118
|
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class DecoratingEmitToPassThroughProxyTest extends AbstractSpruceFixtureTest {
|
3
|
-
private static lastInstance;
|
4
|
-
protected static sharesInstance(): void;
|
5
|
-
protected static canClearInstance(): void;
|
6
|
-
protected static canGetAndSetProxyGenerator(): void;
|
7
|
-
protected static canSetDefaultProxyPassThrough(id: string): Promise<void>;
|
8
|
-
protected static canSetTokenWhileDecorating(): Promise<void>;
|
9
|
-
protected static decoratorPassProps(): Promise<void>;
|
10
|
-
private static assertPropsCopied;
|
11
|
-
protected static instanceIsSameEachTest(): Promise<void>;
|
12
|
-
protected static loginSetsUpProxyTokenGenerator(): Promise<void>;
|
13
|
-
private static assertProxyEquals;
|
14
|
-
private static getDecorator;
|
15
|
-
}
|
@@ -1,112 +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 ClientProxyDecorator_1 = __importDefault(require("../../ClientProxyDecorator"));
|
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 MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
18
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
19
|
-
let DecoratingEmitToPassThroughProxyTest = class DecoratingEmitToPassThroughProxyTest extends AbstractSpruceFixtureTest_1.default {
|
20
|
-
static sharesInstance() {
|
21
|
-
const instance = this.getDecorator();
|
22
|
-
test_utils_1.assert.isEqual(instance, ClientProxyDecorator_1.default.getInstance());
|
23
|
-
}
|
24
|
-
static canClearInstance() {
|
25
|
-
const instance = this.getDecorator();
|
26
|
-
ClientProxyDecorator_1.default.clearInstance();
|
27
|
-
test_utils_1.assert.isNotEqual(instance, this.getDecorator());
|
28
|
-
}
|
29
|
-
static canGetAndSetProxyGenerator() {
|
30
|
-
const instance = this.getDecorator();
|
31
|
-
const cb = async () => '12345';
|
32
|
-
instance.setProxyTokenGenerator(cb);
|
33
|
-
test_utils_1.assert.isEqual(instance.getProxyTokenGenerator(), cb);
|
34
|
-
}
|
35
|
-
static async canSetDefaultProxyPassThrough(id) {
|
36
|
-
const instance = this.getDecorator();
|
37
|
-
instance.setProxyTokenGenerator(async () => id);
|
38
|
-
const client = instance.decorateEmitToPassProxyToken(login_1.default.getClient());
|
39
|
-
await this.assertProxyEquals(client, id);
|
40
|
-
}
|
41
|
-
static async canSetTokenWhileDecorating() {
|
42
|
-
const instance = this.getDecorator();
|
43
|
-
const client = instance.decorateEmitToPassProxyToken(login_1.default.getClient(), '123');
|
44
|
-
await this.assertProxyEquals(client, '123');
|
45
|
-
this.lastInstance = this.getDecorator();
|
46
|
-
}
|
47
|
-
static async decoratorPassProps() {
|
48
|
-
const client = login_1.default.getClient();
|
49
|
-
this.assertPropsCopied(client, 'auth', { skill: true });
|
50
|
-
this.assertPropsCopied(client, 'hell', { world: 'there' });
|
51
|
-
}
|
52
|
-
static assertPropsCopied(client, key, props) {
|
53
|
-
const instance = this.getDecorator();
|
54
|
-
client[key] = props;
|
55
|
-
const decorated = instance.decorateEmitToPassProxyToken(client);
|
56
|
-
//@ts-ignore
|
57
|
-
test_utils_1.assert.isEqualDeep(decorated[key], props);
|
58
|
-
}
|
59
|
-
static async instanceIsSameEachTest() {
|
60
|
-
test_utils_1.assert.isEqual(this.lastInstance, this.getDecorator());
|
61
|
-
}
|
62
|
-
static async loginSetsUpProxyTokenGenerator() {
|
63
|
-
const generator = this.getDecorator().getProxyTokenGenerator();
|
64
|
-
test_utils_1.assert.isTruthy(generator);
|
65
|
-
}
|
66
|
-
static async assertProxyEquals(client, id) {
|
67
|
-
let passedSource;
|
68
|
-
await client.on('whoami::v2020_12_25', ({ source }) => {
|
69
|
-
passedSource = source;
|
70
|
-
return {
|
71
|
-
type: 'anonymous',
|
72
|
-
auth: {},
|
73
|
-
};
|
74
|
-
});
|
75
|
-
await client.emit('whoami::v2020_12_25');
|
76
|
-
test_utils_1.assert.isEqual(passedSource.proxyToken, id);
|
77
|
-
await client.emitAndFlattenResponses('whoami::v2020_12_25');
|
78
|
-
test_utils_1.assert.isEqual(passedSource.proxyToken, id);
|
79
|
-
}
|
80
|
-
static getDecorator() {
|
81
|
-
return ClientProxyDecorator_1.default.getInstance();
|
82
|
-
}
|
83
|
-
};
|
84
|
-
__decorate([
|
85
|
-
(0, test_utils_1.test)()
|
86
|
-
], DecoratingEmitToPassThroughProxyTest, "sharesInstance", null);
|
87
|
-
__decorate([
|
88
|
-
(0, test_utils_1.test)()
|
89
|
-
], DecoratingEmitToPassThroughProxyTest, "canClearInstance", null);
|
90
|
-
__decorate([
|
91
|
-
(0, test_utils_1.test)()
|
92
|
-
], DecoratingEmitToPassThroughProxyTest, "canGetAndSetProxyGenerator", null);
|
93
|
-
__decorate([
|
94
|
-
(0, test_utils_1.test)('can set token to 234', '234'),
|
95
|
-
(0, test_utils_1.test)('can set token to waka', 'waka')
|
96
|
-
], DecoratingEmitToPassThroughProxyTest, "canSetDefaultProxyPassThrough", null);
|
97
|
-
__decorate([
|
98
|
-
(0, test_utils_1.test)()
|
99
|
-
], DecoratingEmitToPassThroughProxyTest, "canSetTokenWhileDecorating", null);
|
100
|
-
__decorate([
|
101
|
-
(0, test_utils_1.test)()
|
102
|
-
], DecoratingEmitToPassThroughProxyTest, "decoratorPassProps", null);
|
103
|
-
__decorate([
|
104
|
-
(0, test_utils_1.test)()
|
105
|
-
], DecoratingEmitToPassThroughProxyTest, "instanceIsSameEachTest", null);
|
106
|
-
__decorate([
|
107
|
-
(0, test_utils_1.test)()
|
108
|
-
], DecoratingEmitToPassThroughProxyTest, "loginSetsUpProxyTokenGenerator", null);
|
109
|
-
DecoratingEmitToPassThroughProxyTest = __decorate([
|
110
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER)
|
111
|
-
], DecoratingEmitToPassThroughProxyTest);
|
112
|
-
exports.default = DecoratingEmitToPassThroughProxyTest;
|
@@ -1,34 +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 mercury_client_1 = require("@sprucelabs/mercury-client");
|
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 fake_1 = __importDefault(require("../../tests/decorators/fake"));
|
17
|
-
process.env.SKILL_ID = 'yay';
|
18
|
-
process.env.SKILL_API_KEY = 'yay';
|
19
|
-
let DelaysConnectWhenOnlyUsingLoginDecoratorTest = class DelaysConnectWhenOnlyUsingLoginDecoratorTest extends AbstractSpruceFixtureTest_1.default {
|
20
|
-
static async globalEmitterListeningToAuthenticate() {
|
21
|
-
const emitter = mercury_client_1.MercuryTestClient.getInternalEmitter({
|
22
|
-
eventSignatures: {},
|
23
|
-
});
|
24
|
-
//@ts-ignore
|
25
|
-
test_utils_1.assert.isTruthy(emitter.listenersByEvent['authenticate::v2020_12_25']);
|
26
|
-
}
|
27
|
-
};
|
28
|
-
__decorate([
|
29
|
-
(0, test_utils_1.test)()
|
30
|
-
], DelaysConnectWhenOnlyUsingLoginDecoratorTest, "globalEmitterListeningToAuthenticate", null);
|
31
|
-
DelaysConnectWhenOnlyUsingLoginDecoratorTest = __decorate([
|
32
|
-
fake_1.default.login(constants_1.DEMO_NUMBER)
|
33
|
-
], DelaysConnectWhenOnlyUsingLoginDecoratorTest);
|
34
|
-
exports.default = DelaysConnectWhenOnlyUsingLoginDecoratorTest;
|
@@ -1,26 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
10
|
-
const __1 = require("../..");
|
11
|
-
class DisablingSchemaValidationOnTestTest extends __1.AbstractSpruceFixtureTest {
|
12
|
-
static shouldValidateIsFalse() {
|
13
|
-
test_utils_1.assert.isEqual(process.env.SHOULD_VALIDATE_SCHEMAS_ON_BOOT, 'false');
|
14
|
-
process.env.SHOULD_VALIDATE_SCHEMAS_ON_BOOT = 'true';
|
15
|
-
}
|
16
|
-
static revertsBeforeEachTest() {
|
17
|
-
test_utils_1.assert.isEqual(process.env.SHOULD_VALIDATE_SCHEMAS_ON_BOOT, 'false');
|
18
|
-
}
|
19
|
-
}
|
20
|
-
exports.default = DisablingSchemaValidationOnTestTest;
|
21
|
-
__decorate([
|
22
|
-
(0, test_utils_1.test)()
|
23
|
-
], DisablingSchemaValidationOnTestTest, "shouldValidateIsFalse", null);
|
24
|
-
__decorate([
|
25
|
-
(0, test_utils_1.test)()
|
26
|
-
], DisablingSchemaValidationOnTestTest, "revertsBeforeEachTest", null);
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class DoesntResetAccountIfOnlySeedingLocally extends AbstractSpruceFixtureTest {
|
3
|
-
protected static beforeEach(): Promise<void>;
|
4
|
-
protected static doesNotResetAccount(): void;
|
5
|
-
protected static doesNotResetBefore(): Promise<void>;
|
6
|
-
protected static resetAfterSeedingOrgs(): void;
|
7
|
-
protected static shouldNotHaveHit(): void;
|
8
|
-
}
|
@@ -1,69 +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 mercury_client_1 = require("@sprucelabs/mercury-client");
|
13
|
-
const mercury_core_events_1 = require("@sprucelabs/mercury-core-events");
|
14
|
-
const test_utils_1 = require("@sprucelabs/test-utils");
|
15
|
-
const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
|
16
|
-
const constants_1 = require("../../tests/constants");
|
17
|
-
const login_1 = __importDefault(require("../../tests/decorators/login"));
|
18
|
-
const seed_1 = __importDefault(require("../../tests/decorators/seed"));
|
19
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
20
|
-
const StoreFixture_1 = __importDefault(require("../../tests/fixtures/StoreFixture"));
|
21
|
-
// eslint-disable-next-line spruce/prohibit-import-from-build-folder
|
22
|
-
const Good_store_1 = __importDefault(require("../testDirsAndFiles/one-good-store-skill/build/stores/Good.store"));
|
23
|
-
MercuryFixture_1.default.setShouldRequireLocalListeners(false);
|
24
|
-
let hitCount = 0;
|
25
|
-
mercury_client_1.MercuryTestClient.reset = () => { };
|
26
|
-
//@ts-ignore
|
27
|
-
const emitter = mercury_client_1.MercuryTestClient.getInternalEmitter(mercury_core_events_1.coreEventContracts[0]);
|
28
|
-
void emitter.on('list-organizations::v2020_12_25', () => {
|
29
|
-
hitCount++;
|
30
|
-
return {
|
31
|
-
organizations: [],
|
32
|
-
};
|
33
|
-
});
|
34
|
-
let DoesntResetAccountIfOnlySeedingLocally = class DoesntResetAccountIfOnlySeedingLocally extends AbstractSpruceFixtureTest_1.default {
|
35
|
-
static async beforeEach() {
|
36
|
-
await super.beforeEach();
|
37
|
-
}
|
38
|
-
static doesNotResetAccount() {
|
39
|
-
test_utils_1.assert.isEqual(hitCount, 1);
|
40
|
-
}
|
41
|
-
static async doesNotResetBefore() {
|
42
|
-
test_utils_1.assert.isEqual(hitCount, 1);
|
43
|
-
}
|
44
|
-
static resetAfterSeedingOrgs() {
|
45
|
-
test_utils_1.assert.isEqual(hitCount, 2);
|
46
|
-
}
|
47
|
-
static shouldNotHaveHit() {
|
48
|
-
test_utils_1.assert.isEqual(hitCount, 2);
|
49
|
-
}
|
50
|
-
};
|
51
|
-
__decorate([
|
52
|
-
(0, test_utils_1.test)(),
|
53
|
-
(0, seed_1.default)('good', 5)
|
54
|
-
], DoesntResetAccountIfOnlySeedingLocally, "doesNotResetAccount", null);
|
55
|
-
__decorate([
|
56
|
-
(0, test_utils_1.test)(),
|
57
|
-
(0, seed_1.default)('organizations', 1)
|
58
|
-
], DoesntResetAccountIfOnlySeedingLocally, "doesNotResetBefore", null);
|
59
|
-
__decorate([
|
60
|
-
(0, test_utils_1.test)()
|
61
|
-
], DoesntResetAccountIfOnlySeedingLocally, "resetAfterSeedingOrgs", null);
|
62
|
-
__decorate([
|
63
|
-
(0, test_utils_1.test)()
|
64
|
-
], DoesntResetAccountIfOnlySeedingLocally, "shouldNotHaveHit", null);
|
65
|
-
DoesntResetAccountIfOnlySeedingLocally = __decorate([
|
66
|
-
(0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_RESET)
|
67
|
-
], DoesntResetAccountIfOnlySeedingLocally);
|
68
|
-
exports.default = DoesntResetAccountIfOnlySeedingLocally;
|
69
|
-
StoreFixture_1.default.setStore('good', Good_store_1.default);
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { AbstractSpruceFixtureTest } from '../..';
|
2
|
-
export default class FakingErrorResponsesTest extends AbstractSpruceFixtureTest {
|
3
|
-
private static client;
|
4
|
-
protected static beforeEach(): Promise<void>;
|
5
|
-
protected static throwsWhenFakingResponse(fqen: any, targetAndPayload: any): Promise<void>;
|
6
|
-
protected static onClearsPreviousListeners(fqen: any): Promise<void>;
|
7
|
-
protected static throwsEvenWhenFakingWithPreviousListeners(): Promise<void>;
|
8
|
-
protected static fakeEventsAreClearedFromPreviousTest(): Promise<void>;
|
9
|
-
protected static canFakeEventWithNoResponse(): Promise<void>;
|
10
|
-
protected static canCustomizeTheErrorPassedIn(): Promise<void>;
|
11
|
-
private static assertResponseIsFakeEventError;
|
12
|
-
}
|
@@ -1,126 +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 __1 = require("../..");
|
15
|
-
const SpruceError_1 = __importDefault(require("../../errors/SpruceError"));
|
16
|
-
const eventFaker_1 = __importDefault(require("../../tests/eventFaker"));
|
17
|
-
class FakingErrorResponsesTest extends __1.AbstractSpruceFixtureTest {
|
18
|
-
static async beforeEach() {
|
19
|
-
await super.beforeEach();
|
20
|
-
this.client = (await this.mercury.connectToApi());
|
21
|
-
}
|
22
|
-
static async throwsWhenFakingResponse(fqen, targetAndPayload) {
|
23
|
-
await eventFaker_1.default.makeEventThrow(fqen);
|
24
|
-
await this.assertResponseIsFakeEventError(fqen, targetAndPayload);
|
25
|
-
}
|
26
|
-
static async onClearsPreviousListeners(fqen) {
|
27
|
-
let wasOldHit = false;
|
28
|
-
let wasNewHit = false;
|
29
|
-
if (!this.client.doesHandleEvent(fqen)) {
|
30
|
-
this.client.mixinContract({
|
31
|
-
eventSignatures: {
|
32
|
-
[fqen]: {},
|
33
|
-
},
|
34
|
-
});
|
35
|
-
}
|
36
|
-
await this.client.on(fqen, () => {
|
37
|
-
wasOldHit = true;
|
38
|
-
});
|
39
|
-
//@ts-ignore
|
40
|
-
await eventFaker_1.default.on(fqen, () => {
|
41
|
-
wasNewHit = true;
|
42
|
-
return {
|
43
|
-
auth: {},
|
44
|
-
type: 'anonymous',
|
45
|
-
};
|
46
|
-
});
|
47
|
-
test_utils_1.assert.isFalse(wasNewHit);
|
48
|
-
await this.client.emit(fqen);
|
49
|
-
test_utils_1.assert.isFalse(wasOldHit);
|
50
|
-
test_utils_1.assert.isTrue(wasNewHit);
|
51
|
-
}
|
52
|
-
static async throwsEvenWhenFakingWithPreviousListeners() {
|
53
|
-
//@ts-ignore
|
54
|
-
await this.client.on('whoami::v2020_12_25', async () => {
|
55
|
-
return {};
|
56
|
-
});
|
57
|
-
await eventFaker_1.default.makeEventThrow('whoami::v2020_12_25');
|
58
|
-
await this.assertResponseIsFakeEventError('whoami::v2020_12_25');
|
59
|
-
}
|
60
|
-
static async fakeEventsAreClearedFromPreviousTest() {
|
61
|
-
await this.client.on('request-pin::v2020_12_25', async () => {
|
62
|
-
return {
|
63
|
-
challenge: 'aoeu',
|
64
|
-
};
|
65
|
-
});
|
66
|
-
await this.client.emitAndFlattenResponses('request-pin::v2020_12_25', {
|
67
|
-
payload: {
|
68
|
-
phone: '+555-000-0001',
|
69
|
-
},
|
70
|
-
});
|
71
|
-
}
|
72
|
-
static async canFakeEventWithNoResponse() {
|
73
|
-
const fqen = 'test-burrito::v1';
|
74
|
-
this.client.mixinContract({
|
75
|
-
eventSignatures: {
|
76
|
-
[fqen]: {
|
77
|
-
isGlobal: true,
|
78
|
-
},
|
79
|
-
},
|
80
|
-
});
|
81
|
-
await eventFaker_1.default.handleReactiveEvent(fqen);
|
82
|
-
const results = await this.client.emit(fqen);
|
83
|
-
test_utils_1.assert.isEqual(results.totalErrors, 0);
|
84
|
-
}
|
85
|
-
static async canCustomizeTheErrorPassedIn() {
|
86
|
-
var _a;
|
87
|
-
const error = new SpruceError_1.default({
|
88
|
-
code: 'INVALID_TARGET',
|
89
|
-
});
|
90
|
-
await eventFaker_1.default.makeEventThrow('whoami::v2020_12_25', error);
|
91
|
-
const results = await this.client.emit('whoami::v2020_12_25');
|
92
|
-
test_utils_1.assert.isEqualDeep((_a = results.responses[0].errors) === null || _a === void 0 ? void 0 : _a[0], error);
|
93
|
-
}
|
94
|
-
static async assertResponseIsFakeEventError(fqen, targetAndPayload) {
|
95
|
-
const results = await this.client.emit(fqen, targetAndPayload);
|
96
|
-
test_utils_1.assert.isEqual(results.totalErrors, 1);
|
97
|
-
spruce_event_utils_1.eventAssertUtil.assertErrorFromResponse(results, 'FAKE_EVENT_ERROR', {
|
98
|
-
fqen,
|
99
|
-
});
|
100
|
-
}
|
101
|
-
}
|
102
|
-
exports.default = FakingErrorResponsesTest;
|
103
|
-
__decorate([
|
104
|
-
(0, test_utils_1.test)('faking whoami::v2020_12_25', 'whoami::v2020_12_25'),
|
105
|
-
(0, test_utils_1.test)('faking request-pin::v2020_12_25', 'request-pin::v2020_12_25', {
|
106
|
-
payload: {
|
107
|
-
phone: '+555-000-0001',
|
108
|
-
},
|
109
|
-
})
|
110
|
-
], FakingErrorResponsesTest, "throwsWhenFakingResponse", null);
|
111
|
-
__decorate([
|
112
|
-
(0, test_utils_1.test)('on clears previous listeners 1', 'whoami::v2020_12_25'),
|
113
|
-
(0, test_utils_1.test)('on clears previous listeners 2', 'what-the::v2020_12_25')
|
114
|
-
], FakingErrorResponsesTest, "onClearsPreviousListeners", null);
|
115
|
-
__decorate([
|
116
|
-
(0, test_utils_1.test)()
|
117
|
-
], FakingErrorResponsesTest, "throwsEvenWhenFakingWithPreviousListeners", null);
|
118
|
-
__decorate([
|
119
|
-
(0, test_utils_1.test)()
|
120
|
-
], FakingErrorResponsesTest, "fakeEventsAreClearedFromPreviousTest", null);
|
121
|
-
__decorate([
|
122
|
-
(0, test_utils_1.test)()
|
123
|
-
], FakingErrorResponsesTest, "canFakeEventWithNoResponse", null);
|
124
|
-
__decorate([
|
125
|
-
(0, test_utils_1.test)()
|
126
|
-
], FakingErrorResponsesTest, "canCustomizeTheErrorPassedIn", null);
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import AbstractSpruceTest from '@sprucelabs/test-utils';
|
2
|
-
export default class FixtureFactoryTest extends AbstractSpruceTest {
|
3
|
-
protected static throwsWithBadFixture(): void;
|
4
|
-
protected static getsFixture(name: string, Class: any): void;
|
5
|
-
private static Fixture;
|
6
|
-
protected static destroyDisconnectsClient(): Promise<void>;
|
7
|
-
}
|
@@ -1,79 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
-
}) : function(o, v) {
|
16
|
-
o["default"] = v;
|
17
|
-
});
|
18
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
21
|
-
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;
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
23
|
-
};
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
25
|
-
if (mod && mod.__esModule) return mod;
|
26
|
-
var result = {};
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
28
|
-
__setModuleDefault(result, mod);
|
29
|
-
return result;
|
30
|
-
};
|
31
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
32
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
33
|
-
};
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
35
|
-
const test_utils_1 = __importStar(require("@sprucelabs/test-utils"));
|
36
|
-
const test_utils_2 = require("@sprucelabs/test-utils");
|
37
|
-
const FixtureFactory_1 = __importDefault(require("../../tests/fixtures/FixtureFactory"));
|
38
|
-
const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
|
39
|
-
const OrganizationFixture_1 = __importDefault(require("../../tests/fixtures/OrganizationFixture"));
|
40
|
-
const PersonFixture_1 = __importDefault(require("../../tests/fixtures/PersonFixture"));
|
41
|
-
const SkillFixture_1 = __importDefault(require("../../tests/fixtures/SkillFixture"));
|
42
|
-
class FixtureFactoryTest extends test_utils_1.default {
|
43
|
-
static throwsWithBadFixture() {
|
44
|
-
//@ts-ignore
|
45
|
-
const err = test_utils_1.assert.doesThrow(() => this.Fixture().Fixture('taco'));
|
46
|
-
test_utils_2.errorAssert.assertError(err, 'INVALID_FIXTURE', {
|
47
|
-
suppliedName: 'taco',
|
48
|
-
});
|
49
|
-
}
|
50
|
-
static getsFixture(name, Class) {
|
51
|
-
//@ts-ignore
|
52
|
-
const fixture = this.Fixture().Fixture(name);
|
53
|
-
test_utils_1.assert.isTrue(fixture instanceof Class);
|
54
|
-
}
|
55
|
-
static Fixture() {
|
56
|
-
return new FixtureFactory_1.default({ cwd: this.cwd });
|
57
|
-
}
|
58
|
-
static async destroyDisconnectsClient() {
|
59
|
-
const { client } = await this.Fixture()
|
60
|
-
.Fixture('person')
|
61
|
-
.loginAsDemoPerson();
|
62
|
-
test_utils_1.assert.isTrue(client.isConnected());
|
63
|
-
await FixtureFactory_1.default.destroy();
|
64
|
-
test_utils_1.assert.isFalse(client.isConnected());
|
65
|
-
}
|
66
|
-
}
|
67
|
-
exports.default = FixtureFactoryTest;
|
68
|
-
__decorate([
|
69
|
-
(0, test_utils_1.test)()
|
70
|
-
], FixtureFactoryTest, "throwsWithBadFixture", null);
|
71
|
-
__decorate([
|
72
|
-
(0, test_utils_1.test)('person fixture', 'person', PersonFixture_1.default),
|
73
|
-
(0, test_utils_1.test)('mercury fixture', 'mercury', MercuryFixture_1.default),
|
74
|
-
(0, test_utils_1.test)('org fixture', 'organization', OrganizationFixture_1.default),
|
75
|
-
(0, test_utils_1.test)('skill fixture', 'skill', SkillFixture_1.default)
|
76
|
-
], FixtureFactoryTest, "getsFixture", null);
|
77
|
-
__decorate([
|
78
|
-
(0, test_utils_1.test)()
|
79
|
-
], FixtureFactoryTest, "destroyDisconnectsClient", null);
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class LocationFixtureTest extends AbstractSpruceFixtureTest {
|
3
|
-
protected static beforeEach(): Promise<void>;
|
4
|
-
protected static canCreateWithSpecificOrg(): Promise<void>;
|
5
|
-
protected static canCreatLocationWithNoParams(): Promise<void>;
|
6
|
-
protected static isNotPartOfLocationToStart(): Promise<void>;
|
7
|
-
protected static uniqueLocationName(): Promise<void>;
|
8
|
-
protected static locationCountResetBeforeEach(): Promise<void>;
|
9
|
-
protected static canAddPersonToLocation(): Promise<void>;
|
10
|
-
protected static throwsWhenTryingToRemovePersonWithBadIds(): Promise<void>;
|
11
|
-
protected static canRemoveRole(): Promise<void>;
|
12
|
-
private static isPersonPartOfLocation;
|
13
|
-
protected static seedLocationAndAddPerson(): Promise<{
|
14
|
-
location: Pick<import("@sprucelabs/schema").SchemaStaticValues<import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.LocationSchema, false, import("@sprucelabs/schema").SchemaOptionalFieldNames<import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.LocationSchema>, import("@sprucelabs/schema").StaticSchemaAllValues<import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.LocationSchema, false>>, "id" | "address" | "phone" | "name" | "organizationId" | "timezone" | "dateCreated" | "dateDeleted" | "isPublic" | "slug" | "num">;
|
15
|
-
person: import("@sprucelabs/mercury-types").SpruceSchemas.Spruce.v2020_07_22.Person;
|
16
|
-
}>;
|
17
|
-
}
|