@sprucelabs/spruce-cli 19.1.23 → 19.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/build/__tests__/behavioral/AddingADependency.test.js +29 -57
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +9 -17
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +9 -17
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +13 -25
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +13 -25
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +73 -145
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +61 -121
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +33 -65
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +13 -25
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +21 -41
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +9 -17
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +10 -18
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +17 -33
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +29 -57
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +21 -41
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +9 -17
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +25 -49
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +21 -41
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +9 -17
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +21 -41
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +9 -17
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +45 -89
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +73 -145
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +53 -105
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/EventWriter.test.js +5 -9
- package/build/__tests__/behavioral/events/EventWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +61 -121
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +41 -81
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +13 -25
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js +14 -26
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js +26 -50
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +5 -9
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +13 -25
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js +13 -25
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +13 -25
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +13 -25
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +9 -17
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +13 -25
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js +49 -97
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +59 -113
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js +13 -25
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +37 -73
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +13 -25
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +29 -57
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +41 -81
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js +5 -9
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +9 -17
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +17 -33
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +21 -41
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +5 -9
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +81 -161
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +13 -25
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +49 -97
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +5 -9
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +5 -9
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +9 -17
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js +33 -65
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js +37 -73
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +17 -33
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +29 -57
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +45 -89
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +41 -81
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +41 -81
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +17 -33
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +45 -89
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js +21 -41
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +9 -17
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +21 -41
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +18 -32
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +53 -105
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +30 -56
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +25 -49
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js +25 -49
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +9 -17
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +21 -41
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js +13 -25
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +53 -105
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +9 -17
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +33 -65
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +17 -33
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +13 -25
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +9 -17
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +9 -17
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +41 -81
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +21 -41
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +37 -73
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +41 -81
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +13 -25
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +17 -33
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +58 -113
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +13 -25
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +37 -73
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +17 -33
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +17 -33
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +5 -9
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.test.js +9 -17
- package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +5 -9
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +9 -17
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +19 -34
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +58 -103
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +9 -17
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +21 -41
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +13 -25
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +25 -49
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +65 -129
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +29 -57
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +5 -9
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +13 -25
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +33 -65
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +10 -16
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +17 -33
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +37 -73
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +9 -17
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +17 -33
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/support/EventFaker.js +5 -9
- package/build/__tests__/support/EventFaker.js.map +1 -1
- package/build/__tests__/support/scripts/first.script.js +5 -7
- package/build/__tests__/support/scripts/first.script.js.map +1 -1
- package/build/boot.js +5 -12
- package/build/boot.js.map +1 -1
- package/build/cli/Cli.js +42 -80
- package/build/cli/Cli.js.map +1 -1
- package/build/components/FormComponent.js +9 -17
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +9 -17
- package/build/components/QuizComponent.js.map +1 -1
- package/build/features/AbstractAction.js +13 -25
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +17 -33
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +11 -17
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +35 -65
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +5 -9
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +43 -81
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +6 -8
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/cache/CacheFeature.js +5 -9
- package/build/features/cache/CacheFeature.js.map +1 -1
- package/build/features/cache/actions/DisableAction.js +5 -9
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +5 -9
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +13 -25
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/conversation/actions/CreateAction.js +5 -9
- package/build/features/conversation/actions/CreateAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +14 -24
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.js +5 -9
- package/build/features/conversation/stores/ConversationStore.js.map +1 -1
- package/build/features/conversation/writers/ConversationWriter.js +5 -9
- package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +5 -9
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +5 -9
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/dependencies/actions/ManageAction.js +5 -9
- package/build/features/dependencies/actions/ManageAction.js.map +1 -1
- package/build/features/deploy/DeployFeature.js +5 -9
- package/build/features/deploy/DeployFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +41 -81
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/error/ErrorFeature.js +13 -25
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/error/ParentTestFinder.js +5 -9
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +5 -9
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +13 -25
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +21 -41
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/EventFeature.js +29 -57
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +5 -9
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +29 -57
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SetRemoteAction.js +5 -9
- package/build/features/event/actions/SetRemoteAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js +5 -9
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/actions/SyncListenersAction.js +5 -9
- package/build/features/event/actions/SyncListenersAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +17 -33
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/stores/EventStore.js +26 -48
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +5 -9
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +25 -49
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +9 -17
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/log/actions/CreateTransportAction.js +5 -9
- package/build/features/log/actions/CreateTransportAction.js.map +1 -1
- package/build/features/log/writers/LogWriter.js +5 -9
- package/build/features/log/writers/LogWriter.js.map +1 -1
- package/build/features/node/NodeFeature.js +22 -40
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/CreateAction.js +5 -9
- package/build/features/node/actions/CreateAction.js.map +1 -1
- package/build/features/node/actions/UpdateDependenciesAction.js +9 -17
- package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +13 -25
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +5 -9
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/OnboardFeature.js +18 -33
- package/build/features/onboard/OnboardFeature.js.map +1 -1
- package/build/features/onboard/ScriptLoader.js +5 -9
- package/build/features/onboard/ScriptLoader.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js +13 -25
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/onboard/actions/OnboardAction.js +5 -9
- package/build/features/onboard/actions/OnboardAction.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.first.script.js +18 -37
- package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.immersive.script.js +8 -13
- package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.returning.script.js +5 -7
- package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.short.script.js +17 -31
- package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.test.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
- package/build/features/onboard/scripts/wrongCommand.script.js +5 -7
- package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
- package/build/features/organization/actions/CreateAction.js +5 -9
- package/build/features/organization/actions/CreateAction.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js +5 -9
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/organization/stores/OrganizationStore.js +21 -41
- package/build/features/organization/stores/OrganizationStore.js.map +1 -1
- package/build/features/permission/PermissionFeature.js +17 -33
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +5 -9
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/permission/actions/SyncAction.js +8 -15
- package/build/features/permission/actions/SyncAction.js.map +1 -1
- package/build/features/permission/stores/PermissionStore.js +9 -17
- package/build/features/permission/stores/PermissionStore.js.map +1 -1
- package/build/features/permission/writers/PermissionWriter.js +13 -25
- package/build/features/permission/writers/PermissionWriter.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +5 -9
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/person/actions/LogoutAction.js +5 -9
- package/build/features/person/actions/LogoutAction.js.map +1 -1
- package/build/features/person/actions/WhoamiAction.js +5 -9
- package/build/features/person/actions/WhoamiAction.js.map +1 -1
- package/build/features/polish/actions/SetupAction.js +5 -9
- package/build/features/polish/actions/SetupAction.js.map +1 -1
- package/build/features/polish/writers/PolishWriter.js +5 -9
- package/build/features/polish/writers/PolishWriter.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +5 -7
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +5 -9
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/sandbox/writers/SandboxWriter.js +5 -9
- package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
- package/build/features/schema/SchemaFeature.js +17 -33
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/ValueTypeBuilder.js +5 -9
- package/build/features/schema/ValueTypeBuilder.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +5 -9
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/actions/SyncAction.js +21 -41
- package/build/features/schema/actions/SyncAction.js.map +1 -1
- package/build/features/schema/actions/SyncFieldsAction.js +5 -9
- package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
- package/build/features/schema/services/SchemaService.js +5 -9
- package/build/features/schema/services/SchemaService.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +31 -57
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +25 -49
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +25 -49
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +9 -17
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +5 -9
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/DashboardAction.js +5 -9
- package/build/features/skill/actions/DashboardAction.js.map +1 -1
- package/build/features/skill/actions/LoginAction.js +5 -9
- package/build/features/skill/actions/LoginAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +5 -9
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js +5 -9
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +37 -73
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +5 -9
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +5 -9
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/StoreFeature.js +13 -25
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +5 -9
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/store/actions/SyncAction.js +5 -9
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/store/stores/StoreStore.js +5 -9
- package/build/features/store/stores/StoreStore.js.map +1 -1
- package/build/features/store/writers/StoreWriter.js +17 -33
- package/build/features/store/writers/StoreWriter.js.map +1 -1
- package/build/features/test/TestFeature.js +9 -17
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestReporter.js +17 -33
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +14 -26
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +17 -33
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +5 -9
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +21 -41
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/test/writers/TestWriter.js +5 -9
- package/build/features/test/writers/TestWriter.js.map +1 -1
- package/build/features/view/ViewFeature.js +10 -16
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +5 -9
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreateThemeAction.js +5 -9
- package/build/features/view/actions/CreateThemeAction.js.map +1 -1
- package/build/features/view/actions/SyncAction.js +5 -9
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/actions/WatchAction.js +5 -9
- package/build/features/view/actions/WatchAction.js.map +1 -1
- package/build/features/view/stores/ViewStore.js +5 -9
- package/build/features/view/stores/ViewStore.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +9 -17
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +21 -41
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/vscode/services/VsCodeService.js +13 -25
- package/build/features/vscode/services/VsCodeService.js.map +1 -1
- package/build/features/vscode/writers/VsCodeWriter.js +5 -9
- package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
- package/build/features/watch/WatchFeature.js +23 -41
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/interfaces/SpyInterface.js +25 -49
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +33 -65
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/BuildService.js +5 -9
- package/build/services/BuildService.js.map +1 -1
- package/build/services/CommandService.js +5 -9
- package/build/services/CommandService.js.map +1 -1
- package/build/services/GameService.js +5 -9
- package/build/services/GameService.js.map +1 -1
- package/build/services/ImportService.js +21 -31
- package/build/services/ImportService.js.map +1 -1
- package/build/services/LintService.js +6 -8
- package/build/services/LintService.js.map +1 -1
- package/build/services/PkgService.js +9 -17
- package/build/services/PkgService.js.map +1 -1
- package/build/services/TypeCheckerService.js +6 -8
- package/build/services/TypeCheckerService.js.map +1 -1
- package/build/stores/AbstractStore.js +5 -9
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/tests/AbstractCliTest.js +61 -121
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractErrorTest.js +5 -9
- package/build/tests/AbstractErrorTest.js.map +1 -1
- package/build/tests/AbstractEventTest.js +17 -33
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +13 -25
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/AbstractSkillTest.js +13 -25
- package/build/tests/AbstractSkillTest.js.map +1 -1
- package/build/tests/AbstractTestTest.js +5 -9
- package/build/tests/AbstractTestTest.js.map +1 -1
- package/build/tests/MockProgramFactory.js +10 -15
- package/build/tests/MockProgramFactory.js.map +1 -1
- package/build/tests/buildTestCache.js +32 -49
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +27 -45
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +25 -49
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/MercuryFixture.js +5 -9
- package/build/tests/fixtures/MercuryFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +13 -25
- package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
- package/build/tests/fixtures/PersonFixture.js +9 -17
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +31 -57
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/tests/fixtures/ViewFixture.js +5 -9
- package/build/tests/fixtures/ViewFixture.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +5 -9
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +5 -9
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +9 -17
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +5 -9
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +5 -9
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkWindowWidget.js +9 -17
- package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
- package/build/writers/AbstractWriter.js +13 -25
- package/build/writers/AbstractWriter.js.map +1 -1
- package/package.json +29 -29
|
@@ -20,7 +20,7 @@ var _test = _interopRequireDefault(require("../../../tests/utilities/test.utilit
|
|
|
20
20
|
var _dec, _dec2, _class;
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest) {
|
|
23
|
+
var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest, _hasSyncAction, _deletingAListener, _createBootListener) {
|
|
24
24
|
(0, _inherits2["default"])(KeepingListenersInSyncTest, _AbstractEventTest);
|
|
25
25
|
var _super = _createSuper(KeepingListenersInSyncTest);
|
|
26
26
|
function KeepingListenersInSyncTest() {
|
|
@@ -29,8 +29,8 @@ var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
29
29
|
}
|
|
30
30
|
(0, _createClass2["default"])(KeepingListenersInSyncTest, null, [{
|
|
31
31
|
key: "hasSyncAction",
|
|
32
|
-
value: function () {
|
|
33
|
-
|
|
32
|
+
value: function hasSyncAction() {
|
|
33
|
+
return (_hasSyncAction = _hasSyncAction || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
34
34
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
35
35
|
while (1) switch (_context.prev = _context.next) {
|
|
36
36
|
case 0:
|
|
@@ -40,16 +40,12 @@ var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
40
40
|
return _context.stop();
|
|
41
41
|
}
|
|
42
42
|
}, _callee, this);
|
|
43
|
-
}));
|
|
44
|
-
|
|
45
|
-
return _hasSyncAction.apply(this, arguments);
|
|
46
|
-
}
|
|
47
|
-
return hasSyncAction;
|
|
48
|
-
}()
|
|
43
|
+
}))).apply(this, arguments);
|
|
44
|
+
}
|
|
49
45
|
}, {
|
|
50
46
|
key: "deletingAListener",
|
|
51
|
-
value: function () {
|
|
52
|
-
|
|
47
|
+
value: function deletingAListener() {
|
|
48
|
+
return (_deletingAListener = _deletingAListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
53
49
|
var results, syncResults, listenerMap;
|
|
54
50
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
55
51
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -77,12 +73,8 @@ var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
77
73
|
return _context2.stop();
|
|
78
74
|
}
|
|
79
75
|
}, _callee2, this);
|
|
80
|
-
}));
|
|
81
|
-
|
|
82
|
-
return _deletingAListener.apply(this, arguments);
|
|
83
|
-
}
|
|
84
|
-
return deletingAListener;
|
|
85
|
-
}()
|
|
76
|
+
}))).apply(this, arguments);
|
|
77
|
+
}
|
|
86
78
|
}, {
|
|
87
79
|
key: "deleteLastFile",
|
|
88
80
|
value: function deleteLastFile(results) {
|
|
@@ -93,8 +85,8 @@ var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
93
85
|
}
|
|
94
86
|
}, {
|
|
95
87
|
key: "createBootListener",
|
|
96
|
-
value: function () {
|
|
97
|
-
|
|
88
|
+
value: function createBootListener(_x) {
|
|
89
|
+
return (_createBootListener = _createBootListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(name) {
|
|
98
90
|
var results;
|
|
99
91
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
100
92
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -113,12 +105,8 @@ var KeepingListenersInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
113
105
|
return _context3.stop();
|
|
114
106
|
}
|
|
115
107
|
}, _callee3, this);
|
|
116
|
-
}));
|
|
117
|
-
|
|
118
|
-
return _createBootListener.apply(this, arguments);
|
|
119
|
-
}
|
|
120
|
-
return createBootListener;
|
|
121
|
-
}()
|
|
108
|
+
}))).apply(this, arguments);
|
|
109
|
+
}
|
|
122
110
|
}]);
|
|
123
111
|
return KeepingListenersInSyncTest;
|
|
124
112
|
}(_AbstractEventTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "deletingAListener", [_dec2], Object.getOwnPropertyDescriptor(_class, "deletingAListener"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeepingListenersInSync.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractEventTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","KeepingListenersInSyncTest","test","_AbstractEventTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"KeepingListenersInSync.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractEventTest2","_interopRequireDefault","_test","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","KeepingListenersInSyncTest","test","_AbstractEventTest","_hasSyncAction","_deletingAListener","_createBootListener","_inherits2","_super","_classCallCheck2","_createClass2","key","value","hasSyncAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isFunction","Action","execute","stop","deletingAListener","_callee2","results","syncResults","listenerMap","_callee2$","_context2","FeatureFixture","installCachedFeatures","createBootListener","sent","deleteLastFile","testUtil","assertFileByNameInGeneratedFiles","files","Service","check","_results$files","path","pop","isString","diskUtil","deleteFile","_x","_callee3","name","_callee3$","_context3","namespace","eventName","isFalsy","errors","abrupt","AbstractEventTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/events/KeepingListenersInSync.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport { FeatureActionResponse } from '../../../features/features.types'\nimport AbstractEventTest from '../../../tests/AbstractEventTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class KeepingListenersInSyncTest extends AbstractEventTest {\n\t@test()\n\tprotected static async hasSyncAction() {\n\t\tassert.isFunction(this.Action('event', 'sync.listeners').execute)\n\t}\n\n\t@test()\n\tprotected static async deletingAListener() {\n\t\tawait this.FeatureFixture().installCachedFeatures('events')\n\n\t\tawait this.createBootListener('did-boot')\n\t\tconst results = await this.createBootListener('will-boot')\n\n\t\tthis.deleteLastFile(results)\n\n\t\tconst syncResults = await this.Action('event', 'sync.listeners').execute({})\n\n\t\tconst listenerMap = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'listeners.ts',\n\t\t\tsyncResults.files\n\t\t)\n\n\t\tawait this.Service('typeChecker').check(listenerMap)\n\t}\n\n\tprivate static deleteLastFile(results: FeatureActionResponse) {\n\t\tconst path = results.files?.pop()?.path\n\t\tassert.isString(path)\n\n\t\tdiskUtil.deleteFile(path)\n\t}\n\n\tprivate static async createBootListener(name: 'will-boot' | 'did-boot') {\n\t\tconst results = await this.Action('event', 'listen').execute({\n\t\t\tnamespace: 'skill',\n\t\t\teventName: name,\n\t\t})\n\t\tassert.isFalsy(results.errors)\n\t\treturn results\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,mBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,KAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA4D,IAAAK,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAA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AAAC,wBAAA,CAAAtF,MAAA,wBAAAA,MAAA,IAAAA,MAAA;AAAAuF,OAAA,cAAAhE,0BAAA"}
|
|
@@ -21,7 +21,7 @@ var _test = _interopRequireDefault(require("../../../tests/utilities/test.utilit
|
|
|
21
21
|
var _dec, _class;
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
var ListeningToAnEventYouCreateTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest) {
|
|
24
|
+
var ListeningToAnEventYouCreateTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest, _canListenToEventWeCreated, _assertClientIsProperlyTyped) {
|
|
25
25
|
(0, _inherits2["default"])(ListeningToAnEventYouCreateTest, _AbstractEventTest);
|
|
26
26
|
var _super = _createSuper(ListeningToAnEventYouCreateTest);
|
|
27
27
|
function ListeningToAnEventYouCreateTest() {
|
|
@@ -30,8 +30,8 @@ var ListeningToAnEventYouCreateTest = (_dec = (0, _testUtils.test)(), (_class =
|
|
|
30
30
|
}
|
|
31
31
|
(0, _createClass2["default"])(ListeningToAnEventYouCreateTest, null, [{
|
|
32
32
|
key: "canListenToEventWeCreated",
|
|
33
|
-
value: function () {
|
|
34
|
-
|
|
33
|
+
value: function canListenToEventWeCreated() {
|
|
34
|
+
return (_canListenToEventWeCreated = _canListenToEventWeCreated || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
35
35
|
var _yield$this$registerC, currentSkill, eventName, version, fqen, source, destination, listenPromise, results, match;
|
|
36
36
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
37
37
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -80,16 +80,12 @@ var ListeningToAnEventYouCreateTest = (_dec = (0, _testUtils.test)(), (_class =
|
|
|
80
80
|
return _context.stop();
|
|
81
81
|
}
|
|
82
82
|
}, _callee, this);
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
return _canListenToEventWeCreated.apply(this, arguments);
|
|
86
|
-
}
|
|
87
|
-
return canListenToEventWeCreated;
|
|
88
|
-
}()
|
|
83
|
+
}))).apply(this, arguments);
|
|
84
|
+
}
|
|
89
85
|
}, {
|
|
90
86
|
key: "assertClientIsProperlyTyped",
|
|
91
|
-
value: function () {
|
|
92
|
-
|
|
87
|
+
value: function assertClientIsProperlyTyped(_x) {
|
|
88
|
+
return (_assertClientIsProperlyTyped = _assertClientIsProperlyTyped || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(eventNamespace) {
|
|
93
89
|
var sourceFile, contents, destinationFile;
|
|
94
90
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
95
91
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -105,12 +101,8 @@ var ListeningToAnEventYouCreateTest = (_dec = (0, _testUtils.test)(), (_class =
|
|
|
105
101
|
return _context2.stop();
|
|
106
102
|
}
|
|
107
103
|
}, _callee2, this);
|
|
108
|
-
}));
|
|
109
|
-
|
|
110
|
-
return _assertClientIsProperlyTyped.apply(this, arguments);
|
|
111
|
-
}
|
|
112
|
-
return assertClientIsProperlyTyped;
|
|
113
|
-
}()
|
|
104
|
+
}))).apply(this, arguments);
|
|
105
|
+
}
|
|
114
106
|
}]);
|
|
115
107
|
return ListeningToAnEventYouCreateTest;
|
|
116
108
|
}(_AbstractEventTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "canListenToEventWeCreated", [_dec], Object.getOwnPropertyDescriptor(_class, "canListenToEventWeCreated"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListeningToAnEventYouCreate.test.js","names":["_spruceEventUtils","require","_spruceSkillUtils","_testUtils","_AbstractEventTest2","_interopRequireDefault","_test","_dec","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ListeningToAnEventYouCreateTest","test","_AbstractEventTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"ListeningToAnEventYouCreate.test.js","names":["_spruceEventUtils","require","_spruceSkillUtils","_testUtils","_AbstractEventTest2","_interopRequireDefault","_test","_dec","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ListeningToAnEventYouCreateTest","test","_AbstractEventTest","_canListenToEventWeCreated","_assertClientIsProperlyTyped","_inherits2","_super","_classCallCheck2","_createClass2","key","value","canListenToEventWeCreated","_asyncToGenerator2","_regenerator","mark","_callee","_yield$this$registerC","currentSkill","eventName","version","fqen","source","destination","listenPromise","results","match","wrap","_callee$","_context","prev","next","registerCurrentSkillAndInstallToOrg","sent","eventNameUtil","join","eventNamespace","slug","resolveTestPath","resolvePath","diskUtil","copyDir","Action","execute","waitForInput","ui","sendInput","assert","isFalsy","errors","testUtil","assertFileByNameInGeneratedFiles","concat","files","doesInclude","assertClientIsProperlyTyped","stop","_x","_callee2","sourceFile","contents","destinationFile","_callee2$","_context2","readFile","replace","writeFile","Service","check","AbstractEventTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.ts"],"sourcesContent":["import { eventNameUtil } from '@sprucelabs/spruce-event-utils'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractEventTest from '../../../tests/AbstractEventTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class ListeningToAnEventYouCreateTest extends AbstractEventTest {\n\t@test()\n\tprotected static async canListenToEventWeCreated() {\n\t\tconst { currentSkill } = await this.registerCurrentSkillAndInstallToOrg()\n\n\t\tconst eventName = 'register-skill-views'\n\t\tconst version = 'v2021_04_11'\n\n\t\tconst fqen = eventNameUtil.join({\n\t\t\teventName,\n\t\t\teventNamespace: currentSkill.slug,\n\t\t\tversion,\n\t\t})\n\n\t\tconst source = this.resolveTestPath('skill_register_skill_views_event/src')\n\t\tconst destination = this.resolvePath('src')\n\n\t\tawait diskUtil.copyDir(source, destination)\n\n\t\tconst listenPromise = this.Action('event', 'listen').execute({})\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput(currentSkill.slug)\n\n\t\tawait this.waitForInput()\n\t\tawait this.ui.sendInput(fqen)\n\n\t\tconst results = await listenPromise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${eventName}.${version}.listener.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(\n\t\t\tmatch,\n\t\t\tdiskUtil.resolvePath('listeners', currentSkill.slug)\n\t\t)\n\n\t\tawait this.assertClientIsProperlyTyped(currentSkill.slug)\n\t}\n\n\tprivate static async assertClientIsProperlyTyped(eventNamespace: string) {\n\t\tconst sourceFile = this.resolvePath('src/client-type-test.ts.hbs')\n\t\tconst contents = diskUtil\n\t\t\t.readFile(sourceFile)\n\t\t\t.replace('{{eventNamespace}}', eventNamespace)\n\n\t\tconst destinationF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cAChE4B,UAAU,GAAG,IAAI,CAACpB,WAAW,CAAC,6BAA6B,CAAC;cAC5DqB,QAAQ,GAAGpB,0BAAQ,CACvBwB,QAAQ,CAACL,UAAU,CAAC,CACpBM,OAAO,CAAC,oBAAoB,EAAE7B,cAAc,CAAC;cAEzCyB,eAAe,GAAG,IAAI,CAACtB,WAAW,CAAC,yBAAyB,CAAC;cACnEC,0BAAQ,CAAC0B,SAAS,CAACL,eAAe,EAAED,QAAQ,CAAC;cAAAG,SAAA,CAAAhC,IAAA;cAAA,OAEvC,IAAI,CAACoC,OAAO,CAAC,aAAa,CAAC,CAACC,KAAK,CAACP,eAAe,CAAC;YAAA;YAAA;cAAA,OAAAE,SAAA,CAAAP,IAAA;UAAA;QAAA,GAAAE,QAAA;MAAA,CACxD,IAAAlE,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAU,+BAAA;AAAA,EAtD2DoE,8BAAiB,QAAAC,0BAAA,aAAA5F,MAAA,gCAAAD,IAAA,GAAA8F,MAAA,CAAAC,wBAAA,CAAA9F,MAAA,gCAAAA,MAAA,IAAAA,MAAA;AAAA+F,OAAA,cAAAxE,+BAAA"}
|
|
@@ -19,7 +19,7 @@ var _AbstractSkillTest2 = _interopRequireDefault(require("../../../tests/Abstrac
|
|
|
19
19
|
var _dec, _dec2, _class, _class2;
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
21
21
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
-
var ListeningToCoreEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
22
|
+
var ListeningToCoreEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest, _canListenToDidInstallWithoutErroring, _canBootASkillWithACoreListener) {
|
|
23
23
|
(0, _inherits2["default"])(ListeningToCoreEventsTest, _AbstractSkillTest);
|
|
24
24
|
var _super = _createSuper(ListeningToCoreEventsTest);
|
|
25
25
|
function ListeningToCoreEventsTest() {
|
|
@@ -28,8 +28,8 @@ var ListeningToCoreEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _tes
|
|
|
28
28
|
}
|
|
29
29
|
(0, _createClass2["default"])(ListeningToCoreEventsTest, null, [{
|
|
30
30
|
key: "canListenToDidInstallWithoutErroring",
|
|
31
|
-
value: function () {
|
|
32
|
-
|
|
31
|
+
value: function canListenToDidInstallWithoutErroring() {
|
|
32
|
+
return (_canListenToDidInstallWithoutErroring = _canListenToDidInstallWithoutErroring || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
33
33
|
var _results$errors;
|
|
34
34
|
var results;
|
|
35
35
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
@@ -49,16 +49,12 @@ var ListeningToCoreEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _tes
|
|
|
49
49
|
return _context.stop();
|
|
50
50
|
}
|
|
51
51
|
}, _callee, this);
|
|
52
|
-
}));
|
|
53
|
-
|
|
54
|
-
return _canListenToDidInstallWithoutErroring.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
return canListenToDidInstallWithoutErroring;
|
|
57
|
-
}()
|
|
52
|
+
}))).apply(this, arguments);
|
|
53
|
+
}
|
|
58
54
|
}, {
|
|
59
55
|
key: "canBootASkillWithACoreListener",
|
|
60
|
-
value: function () {
|
|
61
|
-
|
|
56
|
+
value: function canBootASkillWithACoreListener() {
|
|
57
|
+
return (_canBootASkillWithACoreListener = _canBootASkillWithACoreListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
62
58
|
var response;
|
|
63
59
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
64
60
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -80,12 +76,8 @@ var ListeningToCoreEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _tes
|
|
|
80
76
|
return _context2.stop();
|
|
81
77
|
}
|
|
82
78
|
}, _callee2, this);
|
|
83
|
-
}));
|
|
84
|
-
|
|
85
|
-
return _canBootASkillWithACoreListener.apply(this, arguments);
|
|
86
|
-
}
|
|
87
|
-
return canBootASkillWithACoreListener;
|
|
88
|
-
}()
|
|
79
|
+
}))).apply(this, arguments);
|
|
80
|
+
}
|
|
89
81
|
}]);
|
|
90
82
|
return ListeningToCoreEventsTest;
|
|
91
83
|
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'events'), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "canListenToDidInstallWithoutErroring", [_dec], Object.getOwnPropertyDescriptor(_class, "canListenToDidInstallWithoutErroring"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canBootASkillWithACoreListener", [_dec2], Object.getOwnPropertyDescriptor(_class, "canBootASkillWithACoreListener"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListeningToCoreEvents.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_dec","_dec2","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ListeningToCoreEventsTest","test","_AbstractSkillTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"ListeningToCoreEvents.test.js","names":["_testUtils","require","_AbstractSkillTest2","_interopRequireDefault","_dec","_dec2","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ListeningToCoreEventsTest","test","_AbstractSkillTest","_canListenToDidInstallWithoutErroring","_canBootASkillWithACoreListener","_inherits2","_super","_classCallCheck2","_createClass2","key","value","canListenToDidInstallWithoutErroring","_asyncToGenerator2","_regenerator","mark","_callee","_results$errors","results","wrap","_callee$","_context","prev","next","Action","execute","eventName","namespace","version","sent","assert","isFalsy","errors","stop","canBootASkillWithACoreListener","_callee2","response","_callee2$","_context2","getSkillFixture","registerCurrentSkill","name","local","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/events/ListeningToCoreEvents.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../../tests/AbstractSkillTest'\n\nexport default class ListeningToCoreEventsTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'events'\n\n\t@test()\n\tprotected static async canListenToDidInstallWithoutErroring() {\n\t\tconst results = await this.Action('event', 'listen').execute({\n\t\t\teventName: 'did-install',\n\t\t\tnamespace: 'mercury',\n\t\t\tversion: 'v2020_12_25',\n\t\t})\n\n\t\tassert.isFalsy(results.errors?.[0])\n\t}\n\n\t@test()\n\tprotected static async canBootASkillWithACoreListener() {\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'global listen test',\n\t\t})\n\t\tconst response = await this.Action('skill', 'boot').execute({ local: true })\n\t\tassert.isFalsy(response.errors)\n\t}\n}\n"],"mappings":";;;;;;;;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iB,KAAK,EAAE;cAAK,CAAC,CAAC;YAAA;cAAtEN,QAAQ,GAAAE,SAAA,CAAAT,IAAA;cACdC,iBAAM,CAACC,OAAO,CAACK,QAAQ,CAACJ,MAAM,CAAC;YAAA;YAAA;cAAA,OAAAM,SAAA,CAAAL,IAAA;UAAA;QAAA,GAAAE,QAAA;MAAA,CAC/B,IAAA3C,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAU,yBAAA;AAAA,EArBqD0C,8BAAiB,OAAAC,gBAAA,aAAAlE,OAAA,mBACtC,QAAQ,GAAAA,OAAA,QAAAmE,0BAAA,aAAApE,MAAA,2CAAAF,IAAA,GAAAuE,MAAA,CAAAC,wBAAA,CAAAtE,MAAA,2CAAAA,MAAA,OAAAoE,0BAAA,aAAApE,MAAA,qCAAAD,KAAA,GAAAsE,MAAA,CAAAC,wBAAA,CAAAtE,MAAA,qCAAAA,MAAA,IAAAA,MAAA;AAAAuE,OAAA,cAAA/C,yBAAA"}
|
|
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
25
25
|
var EVENT_NAME_READABLE = 'did book appointment';
|
|
26
26
|
var EVENT_NAME = 'did-book-appointment';
|
|
27
27
|
var EVENT_CAMEL = 'didBookAppointment';
|
|
28
|
-
var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest) {
|
|
28
|
+
var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest, _beforeEach, _registeringEventsOnBoot) {
|
|
29
29
|
(0, _inherits2["default"])(RegisteringEventsOnBootTest, _AbstractEventTest);
|
|
30
30
|
var _super = _createSuper(RegisteringEventsOnBootTest);
|
|
31
31
|
function RegisteringEventsOnBootTest() {
|
|
@@ -34,8 +34,8 @@ var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#_
|
|
|
34
34
|
}
|
|
35
35
|
(0, _createClass2["default"])(RegisteringEventsOnBootTest, null, [{
|
|
36
36
|
key: "beforeEach",
|
|
37
|
-
value: function () {
|
|
38
|
-
|
|
37
|
+
value: function beforeEach() {
|
|
38
|
+
return (_beforeEach = _beforeEach || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
39
39
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
40
40
|
while (1) switch (_context.prev = _context.next) {
|
|
41
41
|
case 0:
|
|
@@ -49,17 +49,13 @@ var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#_
|
|
|
49
49
|
return _context.stop();
|
|
50
50
|
}
|
|
51
51
|
}, _callee, this);
|
|
52
|
-
}));
|
|
53
|
-
|
|
54
|
-
return _beforeEach.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
return beforeEach;
|
|
57
|
-
}()
|
|
52
|
+
}))).apply(this, arguments);
|
|
53
|
+
}
|
|
58
54
|
}, {
|
|
59
55
|
key: "registeringEventsOnBoot",
|
|
60
|
-
value: function () {
|
|
61
|
-
|
|
62
|
-
var _boot$meta;
|
|
56
|
+
value: function registeringEventsOnBoot() {
|
|
57
|
+
return (_registeringEventsOnBoot = _registeringEventsOnBoot || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
58
|
+
var _apiClientFactory, _boot$meta;
|
|
63
59
|
var _yield$this$seedDummy, skill2, currentSkill, boot, client, _yield$this$Store$fet, contracts, version, name, namespace, sig;
|
|
64
60
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
65
61
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -98,8 +94,8 @@ var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#_
|
|
|
98
94
|
client = _context3.sent;
|
|
99
95
|
_context3.next = 19;
|
|
100
96
|
return this.Store('event', {
|
|
101
|
-
apiClientFactory: function () {
|
|
102
|
-
|
|
97
|
+
apiClientFactory: function apiClientFactory() {
|
|
98
|
+
return (_apiClientFactory = _apiClientFactory || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
103
99
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
104
100
|
while (1) switch (_context2.prev = _context2.next) {
|
|
105
101
|
case 0:
|
|
@@ -109,12 +105,8 @@ var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#_
|
|
|
109
105
|
return _context2.stop();
|
|
110
106
|
}
|
|
111
107
|
}, _callee2);
|
|
112
|
-
}));
|
|
113
|
-
|
|
114
|
-
return _apiClientFactory.apply(this, arguments);
|
|
115
|
-
}
|
|
116
|
-
return apiClientFactory;
|
|
117
|
-
}()
|
|
108
|
+
}))).apply(this, arguments);
|
|
109
|
+
}
|
|
118
110
|
}).fetchEventContracts();
|
|
119
111
|
case 19:
|
|
120
112
|
_yield$this$Store$fet = _context3.sent;
|
|
@@ -144,12 +136,8 @@ var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#_
|
|
|
144
136
|
return _context3.stop();
|
|
145
137
|
}
|
|
146
138
|
}, _callee3, this);
|
|
147
|
-
}));
|
|
148
|
-
|
|
149
|
-
return _registeringEventsOnBoot.apply(this, arguments);
|
|
150
|
-
}
|
|
151
|
-
return registeringEventsOnBoot;
|
|
152
|
-
}()
|
|
139
|
+
}))).apply(this, arguments);
|
|
140
|
+
}
|
|
153
141
|
}]);
|
|
154
142
|
return RegisteringEventsOnBootTest;
|
|
155
143
|
}(_AbstractEventTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "registeringEventsOnBoot", [_dec], Object.getOwnPropertyDescriptor(_class, "registeringEventsOnBoot"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteringEventsOnBoot.test.js","names":["_spruceEventUtils","require","_spruceSkillUtils","_testUtils","_AbstractEventTest2","_interopRequireDefault","_constants","_dec","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringEventsOnBootTest","test","_AbstractEventTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"RegisteringEventsOnBoot.test.js","names":["_spruceEventUtils","require","_spruceSkillUtils","_testUtils","_AbstractEventTest2","_interopRequireDefault","_constants","_dec","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringEventsOnBootTest","test","_AbstractEventTest","_beforeEach","_registeringEventsOnBoot","_inherits2","_super","_classCallCheck2","_createClass2","key","value","beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","people","loginAsDemoPerson","DEMO_NUMBER_EVENTS_ON_BOOT","stop","registeringEventsOnBoot","_callee3","_apiClientFactory","_boot$meta","_yield$this$seedDummy","skill2","currentSkill","boot","client","_yield$this$Store$fet","contracts","version","name","namespace","sig","_callee3$","_context3","seedDummySkillRegisterCurrentSkillAndInstallToOrg","sent","Action","execute","nameReadable","nameKebab","nameCamel","copyEventBuildersAndPermissions","local","connectToApi","skillId","id","apiKey","Store","apiClientFactory","_callee2","_callee2$","_context2","abrupt","fetchEventContracts","meta","kill","versionUtil","generateVersion","constValue","eventNameUtil","join","eventNamespace","slug","eventName","assert","isTrue","length","namesUtil","toPascal","eventContractUtil","getSignatureByName","doesInclude","emitPayloadSchema","responsePayloadSchema","AbstractEventTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/events/RegisteringEventsOnBoot.test.ts"],"sourcesContent":["import {\n\teventContractUtil,\n\teventNameUtil,\n} from '@sprucelabs/spruce-event-utils'\nimport { namesUtil, versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractEventTest from '../../../tests/AbstractEventTest'\nimport { DEMO_NUMBER_EVENTS_ON_BOOT } from '../../../tests/constants'\n\nconst EVENT_NAME_READABLE = 'did book appointment'\nconst EVENT_NAME = 'did-book-appointment'\nconst EVENT_CAMEL = 'didBookAppointment'\n\nexport default class RegisteringEventsOnBootTest extends AbstractEventTest {\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_EVENTS_ON_BOOT)\n\t}\n\n\t@test()\n\tprotected static async registeringEventsOnBoot() {\n\t\tconst { skill2, currentSkill } =\n\t\t\tawait this.seedDummySkillRegisterCurrentSkillAndInstallToOrg()\n\n\t\tawait this.Action('event', 'create').execute({\n\t\t\tnameReadable: EVENT_NAME_READABLE,\n\t\t\tnameKebab: EVENT_NAME,\n\t\t\tnameCamel: EVENT_CAMEL,\n\t\t})\n\n\t\tawait this.copyEventBuildersAndPermissions(EVENT_NAME)\n\n\t\tawait this.Action('event', 'sync').execute({})\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: skill2.id,\n\t\t\tapiKey: skill2.apiKey,\n\t\t})\n\n\t\tconst { contracts } = await this.Store('event', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchEventContracts()\n\n\t\tboot.meta?.kill()\n\n\t\tconst version = versionUtil.generateVersion().constValue\n\t\tconst name = eventNameUtil.join({\n\t\t\teventNamespace: currentSkill.slug,\n\t\t\teventName: EVENT_NAME,\n\t\t\tversion,\n\t\t})\n\n\t\tassert.isTrue(contracts.length >= 2)\n\n\t\tconst namespace = namesUtil.toPascal(currentSkill.slug)\n\t\tconst sig = eventContractUtil.getSignatureByName(contracts[1], name)\n\n\t\tassert.doesInclude(sig.emitPayloadSchema, {\n\t\t\tid: 'didBookAppointmentEmitTargetAndPayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\n\t\tassert.doesInclude(sig.responsePayloadSchema, {\n\t\t\tid: 'myFantasticallyAmazingEventResponsePayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AAIA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAqE,IAAAM,IAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAErE,IAAMC,mBAAmB,GAAG,sBAAsB;AAClD,IAAMC,UAAU,GAAG,sBAAsB;AACzC,IAAMC,WAAW,GAAG,oBAAoB;AAAA,IAEnBC,2B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iB,EAAE;gBACzC3B,EAAE,EAAE,wCAAwC;gBAC5CjB,OAAO,EAAPA,OAAO;gBACPE,SAAS,EAATA;cACD,CAAC,CAAC;cAEFkC,iBAAM,CAACO,WAAW,CAACxC,GAAG,CAAC0C,qBAAqB,EAAE;gBAC7C5B,EAAE,EAAE,4CAA4C;gBAChDjB,OAAO,EAAPA,OAAO;gBACPE,SAAS,EAATA;cACD,CAAC,CAAC;YAAA;YAAA;cAAA,OAAAG,SAAA,CAAAjB,IAAA;UAAA;QAAA,GAAAE,QAAA;MAAA,CACF,IAAAvC,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAa,2BAAA;AAAA,EAzDuDmF,8BAAiB,QAAAC,0BAAA,aAAA9G,MAAA,8BAAAD,IAAA,GAAAgH,MAAA,CAAAC,wBAAA,CAAAhH,MAAA,8BAAAA,MAAA,IAAAA,MAAA;AAAAiH,OAAA,cAAAvF,2BAAA"}
|
|
@@ -29,7 +29,7 @@ var stamp = new Date().getTime();
|
|
|
29
29
|
var EVENT_NAME_READABLE = 'did book appointment';
|
|
30
30
|
var EVENT_NAME = "test-register-skill-views".concat(stamp);
|
|
31
31
|
var EVENT_CAMEL = "testRegisterSkillViews".concat(stamp);
|
|
32
|
-
var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
32
|
+
var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest, _beforeAll, _afterAll, _canCreateGlobalEvent, _registersGloballyOnBoot, _canSyncGlobalEvents) {
|
|
33
33
|
(0, _inherits2["default"])(RegisteringGlobalEventsTest, _AbstractSkillTest);
|
|
34
34
|
var _super = _createSuper(RegisteringGlobalEventsTest);
|
|
35
35
|
function RegisteringGlobalEventsTest() {
|
|
@@ -38,8 +38,8 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
38
38
|
}
|
|
39
39
|
(0, _createClass2["default"])(RegisteringGlobalEventsTest, null, [{
|
|
40
40
|
key: "beforeAll",
|
|
41
|
-
value: function () {
|
|
42
|
-
|
|
41
|
+
value: function beforeAll() {
|
|
42
|
+
return (_beforeAll = _beforeAll || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
43
43
|
var orgFixture, skillFixture, org;
|
|
44
44
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
45
45
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -71,16 +71,12 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
71
71
|
return _context.stop();
|
|
72
72
|
}
|
|
73
73
|
}, _callee, this);
|
|
74
|
-
}));
|
|
75
|
-
|
|
76
|
-
return _beforeAll.apply(this, arguments);
|
|
77
|
-
}
|
|
78
|
-
return beforeAll;
|
|
79
|
-
}()
|
|
74
|
+
}))).apply(this, arguments);
|
|
75
|
+
}
|
|
80
76
|
}, {
|
|
81
77
|
key: "afterAll",
|
|
82
|
-
value: function () {
|
|
83
|
-
|
|
78
|
+
value: function afterAll() {
|
|
79
|
+
return (_afterAll = _afterAll || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
84
80
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
85
81
|
while (1) switch (_context2.prev = _context2.next) {
|
|
86
82
|
case 0:
|
|
@@ -91,16 +87,12 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
91
87
|
return _context2.stop();
|
|
92
88
|
}
|
|
93
89
|
}, _callee2, this);
|
|
94
|
-
}));
|
|
95
|
-
|
|
96
|
-
return _afterAll.apply(this, arguments);
|
|
97
|
-
}
|
|
98
|
-
return afterAll;
|
|
99
|
-
}()
|
|
90
|
+
}))).apply(this, arguments);
|
|
91
|
+
}
|
|
100
92
|
}, {
|
|
101
93
|
key: "canCreateGlobalEvent",
|
|
102
|
-
value: function () {
|
|
103
|
-
|
|
94
|
+
value: function canCreateGlobalEvent() {
|
|
95
|
+
return (_canCreateGlobalEvent = _canCreateGlobalEvent || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
104
96
|
var results, optionsFile, importedOptions, version, contractFile, importedContract, sig;
|
|
105
97
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
106
98
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -137,17 +129,13 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
137
129
|
return _context3.stop();
|
|
138
130
|
}
|
|
139
131
|
}, _callee3, this);
|
|
140
|
-
}));
|
|
141
|
-
|
|
142
|
-
return _canCreateGlobalEvent.apply(this, arguments);
|
|
143
|
-
}
|
|
144
|
-
return canCreateGlobalEvent;
|
|
145
|
-
}()
|
|
132
|
+
}))).apply(this, arguments);
|
|
133
|
+
}
|
|
146
134
|
}, {
|
|
147
135
|
key: "registersGloballyOnBoot",
|
|
148
|
-
value: function () {
|
|
149
|
-
|
|
150
|
-
var _boot$meta;
|
|
136
|
+
value: function registersGloballyOnBoot() {
|
|
137
|
+
return (_registersGloballyOnBoot = _registersGloballyOnBoot || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
138
|
+
var _apiClientFactory, _boot$meta;
|
|
151
139
|
var boot, client, contractResults, contracts, version, eventName;
|
|
152
140
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
153
141
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -167,8 +155,8 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
167
155
|
client = _context5.sent;
|
|
168
156
|
_context5.next = 8;
|
|
169
157
|
return this.Store('event', {
|
|
170
|
-
apiClientFactory: function () {
|
|
171
|
-
|
|
158
|
+
apiClientFactory: function apiClientFactory() {
|
|
159
|
+
return (_apiClientFactory = _apiClientFactory || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
172
160
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
173
161
|
while (1) switch (_context4.prev = _context4.next) {
|
|
174
162
|
case 0:
|
|
@@ -178,12 +166,8 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
178
166
|
return _context4.stop();
|
|
179
167
|
}
|
|
180
168
|
}, _callee4);
|
|
181
|
-
}));
|
|
182
|
-
|
|
183
|
-
return _apiClientFactory.apply(this, arguments);
|
|
184
|
-
}
|
|
185
|
-
return apiClientFactory;
|
|
186
|
-
}()
|
|
169
|
+
}))).apply(this, arguments);
|
|
170
|
+
}
|
|
187
171
|
}).fetchEventContracts();
|
|
188
172
|
case 8:
|
|
189
173
|
contractResults = _context5.sent;
|
|
@@ -197,16 +181,12 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
197
181
|
return _context5.stop();
|
|
198
182
|
}
|
|
199
183
|
}, _callee5, this);
|
|
200
|
-
}));
|
|
201
|
-
|
|
202
|
-
return _registersGloballyOnBoot.apply(this, arguments);
|
|
203
|
-
}
|
|
204
|
-
return registersGloballyOnBoot;
|
|
205
|
-
}()
|
|
184
|
+
}))).apply(this, arguments);
|
|
185
|
+
}
|
|
206
186
|
}, {
|
|
207
187
|
key: "canSyncGlobalEvents",
|
|
208
|
-
value: function () {
|
|
209
|
-
|
|
188
|
+
value: function canSyncGlobalEvents() {
|
|
189
|
+
return (_canSyncGlobalEvents = _canSyncGlobalEvents || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
210
190
|
var results;
|
|
211
191
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
212
192
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -223,12 +203,8 @@ var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _t
|
|
|
223
203
|
return _context6.stop();
|
|
224
204
|
}
|
|
225
205
|
}, _callee6, this);
|
|
226
|
-
}));
|
|
227
|
-
|
|
228
|
-
return _canSyncGlobalEvents.apply(this, arguments);
|
|
229
|
-
}
|
|
230
|
-
return canSyncGlobalEvents;
|
|
231
|
-
}()
|
|
206
|
+
}))).apply(this, arguments);
|
|
207
|
+
}
|
|
232
208
|
}]);
|
|
233
209
|
return RegisteringGlobalEventsTest;
|
|
234
210
|
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'events'), (0, _defineProperty2["default"])(_class2, "skill", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "canCreateGlobalEvent", [_dec], Object.getOwnPropertyDescriptor(_class, "canCreateGlobalEvent"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "registersGloballyOnBoot", [_dec2], Object.getOwnPropertyDescriptor(_class, "registersGloballyOnBoot"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canSyncGlobalEvents", [_dec3], Object.getOwnPropertyDescriptor(_class, "canSyncGlobalEvents"), _class)), _class));
|