@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,164 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
import { DatabaseFixture, StoreLoader, StoreFactory, CursorPagerFaker, } from '@sprucelabs/data-stores';
|
17
|
-
import AbstractSpruceTest, { assert, test } from '@sprucelabs/test-utils';
|
18
|
-
import FixtureFactory from '../../../tests/fixtures/FixtureFactory.js';
|
19
|
-
import StoreFixture from '../../../tests/fixtures/StoreFixture.js';
|
20
|
-
export default class StoreFixtureTest extends AbstractSpruceTest {
|
21
|
-
static beforeAll() {
|
22
|
-
const _super = Object.create(null, {
|
23
|
-
beforeAll: { get: () => super.beforeAll }
|
24
|
-
});
|
25
|
-
return __awaiter(this, void 0, void 0, function* () {
|
26
|
-
yield _super.beforeAll.call(this);
|
27
|
-
this.originalDestroy = DatabaseFixture.destroy.bind(DatabaseFixture);
|
28
|
-
this.originalAfterEach = DatabaseFixture.afterEach.bind(DatabaseFixture);
|
29
|
-
});
|
30
|
-
}
|
31
|
-
static beforeEach() {
|
32
|
-
const _super = Object.create(null, {
|
33
|
-
beforeEach: { get: () => super.beforeEach }
|
34
|
-
});
|
35
|
-
return __awaiter(this, void 0, void 0, function* () {
|
36
|
-
yield _super.beforeEach.call(this);
|
37
|
-
DatabaseFixture.destroy = this.originalDestroy;
|
38
|
-
DatabaseFixture.afterEach = this.originalAfterEach;
|
39
|
-
});
|
40
|
-
}
|
41
|
-
static canGetFixture() {
|
42
|
-
return __awaiter(this, void 0, void 0, function* () {
|
43
|
-
assert.isTruthy(this.FixtureFactory().Fixture('store'));
|
44
|
-
});
|
45
|
-
}
|
46
|
-
static canGetFunctioningStores() {
|
47
|
-
return __awaiter(this, void 0, void 0, function* () {
|
48
|
-
this.setStoreDirToOneGoodStore();
|
49
|
-
const dbFixture = this.FixtureFactory().Fixture('database');
|
50
|
-
const db = yield dbFixture.connectToDatabase();
|
51
|
-
StoreLoader.setDatabase(db);
|
52
|
-
const fixture = this.FixtureFactory().Fixture('store');
|
53
|
-
const goodStore = yield fixture.Store('good');
|
54
|
-
assert.isTruthy(goodStore);
|
55
|
-
});
|
56
|
-
}
|
57
|
-
static beforeAllCallsBeforeAllOnDatabaseFixture() {
|
58
|
-
return __awaiter(this, void 0, void 0, function* () {
|
59
|
-
let wasHit = false;
|
60
|
-
//@ts-ignore
|
61
|
-
DatabaseFixture.beforeAll = () => {
|
62
|
-
wasHit = true;
|
63
|
-
};
|
64
|
-
yield StoreFixture.beforeAll();
|
65
|
-
assert.isTrue(wasHit);
|
66
|
-
});
|
67
|
-
}
|
68
|
-
static beforeEachCallsDestroyOnDatabaseFixture() {
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
70
|
-
let wasHit = false;
|
71
|
-
//@ts-ignore
|
72
|
-
DatabaseFixture.destroy = () => {
|
73
|
-
wasHit = true;
|
74
|
-
};
|
75
|
-
yield StoreFixture.beforeEach();
|
76
|
-
assert.isTrue(wasHit);
|
77
|
-
});
|
78
|
-
}
|
79
|
-
static afterEachCallsAfterEachOnDatabaseFixture() {
|
80
|
-
return __awaiter(this, void 0, void 0, function* () {
|
81
|
-
let wasHit = false;
|
82
|
-
//@ts-ignore
|
83
|
-
DatabaseFixture.afterEach = () => {
|
84
|
-
wasHit = true;
|
85
|
-
};
|
86
|
-
yield StoreFixture.afterEach();
|
87
|
-
assert.isTrue(wasHit);
|
88
|
-
});
|
89
|
-
}
|
90
|
-
static storeLoaderUsesNewInstanceOfDbEachRun() {
|
91
|
-
return __awaiter(this, void 0, void 0, function* () {
|
92
|
-
const loader1 = yield StoreLoader.getInstance();
|
93
|
-
yield StoreFixture.beforeEach();
|
94
|
-
const loader2 = yield StoreLoader.getInstance();
|
95
|
-
//@ts-ignore
|
96
|
-
assert.isNotEqual(loader1.db, loader2.db);
|
97
|
-
});
|
98
|
-
}
|
99
|
-
static storeFixtureCallsResetOnStoreFactory() {
|
100
|
-
return __awaiter(this, void 0, void 0, function* () {
|
101
|
-
let wasHit = false;
|
102
|
-
//@ts-ignore
|
103
|
-
StoreFactory.reset = () => {
|
104
|
-
wasHit = true;
|
105
|
-
};
|
106
|
-
yield StoreFixture.beforeEach();
|
107
|
-
assert.isTrue(wasHit);
|
108
|
-
});
|
109
|
-
}
|
110
|
-
static callsBeforeEachOnCursorFaker() {
|
111
|
-
return __awaiter(this, void 0, void 0, function* () {
|
112
|
-
let wasHit = false;
|
113
|
-
//@ts-ignore
|
114
|
-
CursorPagerFaker.beforeEach = () => {
|
115
|
-
wasHit = true;
|
116
|
-
};
|
117
|
-
yield StoreFixture.beforeEach();
|
118
|
-
assert.isTrue(wasHit);
|
119
|
-
});
|
120
|
-
}
|
121
|
-
static canGetStore() {
|
122
|
-
return __awaiter(this, void 0, void 0, function* () {
|
123
|
-
this.setStoreDirToOneGoodStore();
|
124
|
-
const fixture = this.FixtureFactory().Fixture('store');
|
125
|
-
const stores = yield fixture.getStoreFactory();
|
126
|
-
const store1 = yield stores.getStore('good');
|
127
|
-
const store2 = yield fixture.getStore('good');
|
128
|
-
assert.isEqual(store1, store2);
|
129
|
-
});
|
130
|
-
}
|
131
|
-
static setStoreDirToOneGoodStore() {
|
132
|
-
StoreLoader.setStoreDir(this.resolvePath(__dirname, '..', '..', 'testDirsAndFiles', 'one-good-store-skill', 'build'));
|
133
|
-
}
|
134
|
-
static FixtureFactory() {
|
135
|
-
return new FixtureFactory({ cwd: this.cwd });
|
136
|
-
}
|
137
|
-
}
|
138
|
-
__decorate([
|
139
|
-
test()
|
140
|
-
], StoreFixtureTest, "canGetFixture", null);
|
141
|
-
__decorate([
|
142
|
-
test()
|
143
|
-
], StoreFixtureTest, "canGetFunctioningStores", null);
|
144
|
-
__decorate([
|
145
|
-
test()
|
146
|
-
], StoreFixtureTest, "beforeAllCallsBeforeAllOnDatabaseFixture", null);
|
147
|
-
__decorate([
|
148
|
-
test()
|
149
|
-
], StoreFixtureTest, "beforeEachCallsDestroyOnDatabaseFixture", null);
|
150
|
-
__decorate([
|
151
|
-
test()
|
152
|
-
], StoreFixtureTest, "afterEachCallsAfterEachOnDatabaseFixture", null);
|
153
|
-
__decorate([
|
154
|
-
test()
|
155
|
-
], StoreFixtureTest, "storeLoaderUsesNewInstanceOfDbEachRun", null);
|
156
|
-
__decorate([
|
157
|
-
test()
|
158
|
-
], StoreFixtureTest, "storeFixtureCallsResetOnStoreFactory", null);
|
159
|
-
__decorate([
|
160
|
-
test()
|
161
|
-
], StoreFixtureTest, "callsBeforeEachOnCursorFaker", null);
|
162
|
-
__decorate([
|
163
|
-
test()
|
164
|
-
], StoreFixtureTest, "canGetStore", null);
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest';
|
2
|
-
export default class AuthenticatingAsAPersonTest extends AbstractSpruceFixtureTest {
|
3
|
-
protected static throwsWithBadToken(): Promise<void>;
|
4
|
-
protected static canAuthenticateAsAPerson(): Promise<void>;
|
5
|
-
protected static authReturnsExpectedPerson(): Promise<void>;
|
6
|
-
protected static authReturnsProperType(): Promise<void>;
|
7
|
-
protected static tokenAlwaysDifferent(): Promise<void>;
|
8
|
-
private static connectAnon;
|
9
|
-
}
|
@@ -1,89 +0,0 @@
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
|
-
};
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
14
|
-
});
|
15
|
-
};
|
16
|
-
import { eventAssertUtil } from '@sprucelabs/spruce-event-utils';
|
17
|
-
import { test, assert } from '@sprucelabs/test-utils';
|
18
|
-
import AbstractSpruceFixtureTest from '../../../tests/AbstractSpruceFixtureTest.js';
|
19
|
-
import fake from '../../../tests/decorators/fake.js';
|
20
|
-
let AuthenticatingAsAPersonTest = class AuthenticatingAsAPersonTest extends AbstractSpruceFixtureTest {
|
21
|
-
static throwsWithBadToken() {
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
23
|
-
const err = yield assert.doesThrowAsync(() => fake.getClient().authenticate({ token: 'aoeuaou' }));
|
24
|
-
eventAssertUtil.assertError(err, 'INVALID_AUTH_TOKEN');
|
25
|
-
});
|
26
|
-
}
|
27
|
-
static canAuthenticateAsAPerson() {
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
29
|
-
const { token, person } = yield this.people.loginAsDemoPerson();
|
30
|
-
const { person: person2 } = yield fake
|
31
|
-
.getClient()
|
32
|
-
.authenticate({ token });
|
33
|
-
assert.isEqualDeep(person, person2);
|
34
|
-
});
|
35
|
-
}
|
36
|
-
static authReturnsExpectedPerson() {
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
38
|
-
yield this.people.loginAsDemoPerson();
|
39
|
-
const { token, person } = yield this.people.loginAsDemoPerson('555-111-1234');
|
40
|
-
const client = yield this.connectAnon();
|
41
|
-
const { person: person2 } = yield client.authenticate({ token });
|
42
|
-
assert.isEqualDeep(person, person2);
|
43
|
-
});
|
44
|
-
}
|
45
|
-
static authReturnsProperType() {
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
47
|
-
var _a;
|
48
|
-
const client = yield this.connectAnon();
|
49
|
-
const [{ type }] = yield client.emitAndFlattenResponses('authenticate::v2020_12_25', {
|
50
|
-
payload: {
|
51
|
-
//@ts-ignore
|
52
|
-
token: (_a = this.fakedTokens[0]) === null || _a === void 0 ? void 0 : _a.token,
|
53
|
-
},
|
54
|
-
});
|
55
|
-
assert.isEqual(type, 'authenticated');
|
56
|
-
});
|
57
|
-
}
|
58
|
-
static tokenAlwaysDifferent() {
|
59
|
-
return __awaiter(this, void 0, void 0, function* () {
|
60
|
-
const { token: token1 } = yield this.people.loginAsDemoPerson();
|
61
|
-
const { token: token2 } = yield this.people.loginAsDemoPerson('555-111-1234');
|
62
|
-
assert.isNotEqual(token1, token2);
|
63
|
-
});
|
64
|
-
}
|
65
|
-
static connectAnon() {
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
67
|
-
return yield this.mercury.connectToApi({ shouldReUseClient: false });
|
68
|
-
});
|
69
|
-
}
|
70
|
-
};
|
71
|
-
__decorate([
|
72
|
-
test()
|
73
|
-
], AuthenticatingAsAPersonTest, "throwsWithBadToken", null);
|
74
|
-
__decorate([
|
75
|
-
test()
|
76
|
-
], AuthenticatingAsAPersonTest, "canAuthenticateAsAPerson", null);
|
77
|
-
__decorate([
|
78
|
-
test()
|
79
|
-
], AuthenticatingAsAPersonTest, "authReturnsExpectedPerson", null);
|
80
|
-
__decorate([
|
81
|
-
test()
|
82
|
-
], AuthenticatingAsAPersonTest, "authReturnsProperType", null);
|
83
|
-
__decorate([
|
84
|
-
test()
|
85
|
-
], AuthenticatingAsAPersonTest, "tokenAlwaysDifferent", null);
|
86
|
-
AuthenticatingAsAPersonTest = __decorate([
|
87
|
-
fake.login()
|
88
|
-
], AuthenticatingAsAPersonTest);
|
89
|
-
export default AuthenticatingAsAPersonTest;
|
@@ -1,45 +0,0 @@
|
|
1
|
-
import { CoreSeedTarget } from '../../../tests/decorators/seed';
|
2
|
-
import AbstractFakeDecoratorTest from '../../support/AbstractFakeDecoratorTest';
|
3
|
-
export default class FakeDecoratorTest extends AbstractFakeDecoratorTest {
|
4
|
-
private static client;
|
5
|
-
protected static beforeEach(): Promise<void>;
|
6
|
-
protected static doesNotThrowWhenMissingPhone(): void;
|
7
|
-
protected static throwsWhenInvalidPhone(): void;
|
8
|
-
protected static fakingLoginSetsRequireLocalListeners(): Promise<void>;
|
9
|
-
protected static getPersonThrowsWithoutPersonId(): Promise<void>;
|
10
|
-
protected static fakesGetPerson(): Promise<void>;
|
11
|
-
protected static getPersonThrowsWithBadId(): Promise<void>;
|
12
|
-
protected static fakingFailWithMissingParams(): Promise<void>;
|
13
|
-
protected static failsWithoutOwner(): Promise<void>;
|
14
|
-
protected static seedsOrg(total: number): Promise<void>;
|
15
|
-
protected static fakesGetOrganization(orgIdx: number): Promise<void>;
|
16
|
-
protected static gettingOrgThrowsWithBadOrgId(): Promise<void>;
|
17
|
-
protected static fakingOrgsMoreThanOnceStacks(): Promise<void>;
|
18
|
-
protected static fakesListOrgsAndReturnsNewestFirst(): Promise<void>;
|
19
|
-
protected static listOrgsHonorsLimit(limit: number): Promise<void>;
|
20
|
-
protected static canGetLatestOrgWithScope(): Promise<void>;
|
21
|
-
protected static seedingLocationSeedsOneOrg(totalLocations: number): Promise<void>;
|
22
|
-
protected static seedsGoodLocation(total: number): Promise<void>;
|
23
|
-
protected static sortsLocationsNewestFirst(): Promise<void>;
|
24
|
-
protected static canGetLocationFromScope(): Promise<void>;
|
25
|
-
protected static fakingLoginsFakesRoles(): Promise<void>;
|
26
|
-
protected static fakingOrgFakesRoles(): Promise<void>;
|
27
|
-
protected static listRolesReturnsFakedRoles(): Promise<void>;
|
28
|
-
protected static listRolesHonorsOrgId(): Promise<void>;
|
29
|
-
protected static listRolesForPersonWithoutTargetingOrgReturnsAllRolesForPerson(): Promise<void>;
|
30
|
-
protected static canSyncTeammates(target: CoreSeedTarget, total: number): Promise<void>;
|
31
|
-
protected static canLoginAsPersonAndGetThemBack(phone: string): Promise<void>;
|
32
|
-
protected static sendingBadChallengeThrows(): Promise<void>;
|
33
|
-
protected static fakesSkillLifecycleEvents(): Promise<void>;
|
34
|
-
protected static callingRegisterProxyTokenOnAnonClientDoesNotThrough(): Promise<void>;
|
35
|
-
private static fakeLoginAndListRoles;
|
36
|
-
private static seedAndGetNewestOrganization;
|
37
|
-
private static seedAndGetNewestLocation;
|
38
|
-
private static emitGetOrganization;
|
39
|
-
private static fakeLoginAndRecords;
|
40
|
-
private static fakeRecords;
|
41
|
-
private static fakeLoginAndListOrgs;
|
42
|
-
private static listOrganizations;
|
43
|
-
private static listRolesForPerson;
|
44
|
-
private static createMultipleOrgsAndAddOwnerAdditionalTeammateRoleAtRandomOrg;
|
45
|
-
}
|