@sprucelabs/spruce-test-fixtures 62.2.24 → 62.2.26

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.
Files changed (291) hide show
  1. package/build/esm/index.d.ts +1 -1
  2. package/build/esm/index.js +1 -1
  3. package/build/esm/tests/fixtures/ViewFixture.d.ts +1 -1
  4. package/build/esm/tests/routers/TestRouter.d.ts +1 -1
  5. package/build/esm/tests/routers/TestRouter.js +1 -1
  6. package/build/index.d.ts +1 -1
  7. package/build/index.js +1 -1
  8. package/build/tests/fixtures/ViewFixture.d.ts +1 -1
  9. package/build/tests/routers/TestRouter.d.ts +1 -1
  10. package/build/tests/routers/TestRouter.js +1 -1
  11. package/package.json +19 -19
  12. package/build/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.d.ts +0 -15
  13. package/build/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +0 -112
  14. package/build/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.d.ts +0 -4
  15. package/build/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +0 -34
  16. package/build/__tests__/behavioral/DisablingSchemaValidationOnTest.test.d.ts +0 -5
  17. package/build/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +0 -26
  18. package/build/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.d.ts +0 -8
  19. package/build/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +0 -69
  20. package/build/__tests__/behavioral/FakingEventResponses.test.d.ts +0 -12
  21. package/build/__tests__/behavioral/FakingEventResponses.test.js +0 -126
  22. package/build/__tests__/behavioral/FixtureFactory.test.d.ts +0 -7
  23. package/build/__tests__/behavioral/FixtureFactory.test.js +0 -79
  24. package/build/__tests__/behavioral/LocationFixture.test.d.ts +0 -17
  25. package/build/__tests__/behavioral/LocationFixture.test.js +0 -144
  26. package/build/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.d.ts +0 -12
  27. package/build/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +0 -95
  28. package/build/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.d.ts +0 -4
  29. package/build/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +0 -35
  30. package/build/__tests__/behavioral/MercuryFixture.test.d.ts +0 -20
  31. package/build/__tests__/behavioral/MercuryFixture.test.js +0 -187
  32. package/build/__tests__/behavioral/OrganizationFixture.test.d.ts +0 -31
  33. package/build/__tests__/behavioral/OrganizationFixture.test.js +0 -333
  34. package/build/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.d.ts +0 -4
  35. package/build/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +0 -21
  36. package/build/__tests__/behavioral/PersonFixture.test.d.ts +0 -22
  37. package/build/__tests__/behavioral/PersonFixture.test.js +0 -225
  38. package/build/__tests__/behavioral/PhoneNumberIncrementor.test.d.ts +0 -11
  39. package/build/__tests__/behavioral/PhoneNumberIncrementor.test.js +0 -95
  40. package/build/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.d.ts +0 -8
  41. package/build/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +0 -67
  42. package/build/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.d.ts +0 -5
  43. package/build/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +0 -44
  44. package/build/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.d.ts +0 -8
  45. package/build/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +0 -55
  46. package/build/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.d.ts +0 -10
  47. package/build/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +0 -137
  48. package/build/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.d.ts +0 -7
  49. package/build/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +0 -54
  50. package/build/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.d.ts +0 -6
  51. package/build/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +0 -40
  52. package/build/__tests__/behavioral/RoleFixture.test.d.ts +0 -15
  53. package/build/__tests__/behavioral/RoleFixture.test.js +0 -118
  54. package/build/__tests__/behavioral/SkillFixture.test.d.ts +0 -13
  55. package/build/__tests__/behavioral/SkillFixture.test.js +0 -118
  56. package/build/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.d.ts +0 -7
  57. package/build/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.js +0 -41
  58. package/build/__tests__/behavioral/databases/DatabaseFixture.test.d.ts +0 -7
  59. package/build/__tests__/behavioral/databases/DatabaseFixture.test.js +0 -59
  60. package/build/__tests__/behavioral/databases/DbResetsAsExpected.test.d.ts +0 -5
  61. package/build/__tests__/behavioral/databases/DbResetsAsExpected.test.js +0 -34
  62. package/build/__tests__/behavioral/databases/DummyStore.d.ts +0 -55
  63. package/build/__tests__/behavioral/databases/DummyStore.js +0 -36
  64. package/build/__tests__/behavioral/databases/StoreFixture.test.d.ts +0 -23
  65. package/build/__tests__/behavioral/databases/StoreFixture.test.js +0 -156
  66. package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.d.ts +0 -9
  67. package/build/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +0 -73
  68. package/build/__tests__/behavioral/faking/FakeDecorator.test.d.ts +0 -45
  69. package/build/__tests__/behavioral/faking/FakeDecorator.test.js +0 -421
  70. package/build/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.d.ts +0 -4
  71. package/build/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +0 -23
  72. package/build/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.d.ts +0 -4
  73. package/build/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +0 -27
  74. package/build/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +0 -8
  75. package/build/__tests__/behavioral/faking/FakeThemeManager.test.js +0 -93
  76. package/build/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.d.ts +0 -8
  77. package/build/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +0 -56
  78. package/build/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.d.ts +0 -14
  79. package/build/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +0 -141
  80. package/build/__tests__/behavioral/faking/FakingAuthenticator.test.d.ts +0 -5
  81. package/build/__tests__/behavioral/faking/FakingAuthenticator.test.js +0 -35
  82. package/build/__tests__/behavioral/faking/FakingInBeforeEach.test.d.ts +0 -6
  83. package/build/__tests__/behavioral/faking/FakingInBeforeEach.test.js +0 -42
  84. package/build/__tests__/behavioral/faking/FakingLocations.test.d.ts +0 -6
  85. package/build/__tests__/behavioral/faking/FakingLocations.test.js +0 -45
  86. package/build/__tests__/behavioral/faking/FakingRoleEvents.test.d.ts +0 -19
  87. package/build/__tests__/behavioral/faking/FakingRoleEvents.test.js +0 -140
  88. package/build/__tests__/behavioral/faking/FakingSkillEvents.test.d.ts +0 -24
  89. package/build/__tests__/behavioral/faking/FakingSkillEvents.test.js +0 -174
  90. package/build/__tests__/behavioral/faking/UpdatePerson.test.d.ts +0 -4
  91. package/build/__tests__/behavioral/faking/UpdatePerson.test.js +0 -32
  92. package/build/__tests__/behavioral/faking/UsingFakeDecorators.test.d.ts +0 -35
  93. package/build/__tests__/behavioral/faking/UsingFakeDecorators.test.js +0 -321
  94. package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +0 -4
  95. package/build/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +0 -48
  96. package/build/__tests__/behavioral/faking/WhoAmI.test.d.ts +0 -19
  97. package/build/__tests__/behavioral/faking/WhoAmI.test.js +0 -105
  98. package/build/__tests__/behavioral/maps/SpyingMapUtil.test.d.ts +0 -10
  99. package/build/__tests__/behavioral/maps/SpyingMapUtil.test.js +0 -76
  100. package/build/__tests__/behavioral/permissions/FakeAuthorizer.test.d.ts +0 -34
  101. package/build/__tests__/behavioral/permissions/FakeAuthorizer.test.js +0 -272
  102. package/build/__tests__/behavioral/permissions/PermissionFixture.test.d.ts +0 -5
  103. package/build/__tests__/behavioral/permissions/PermissionFixture.test.js +0 -35
  104. package/build/__tests__/behavioral/seeding/SeedingData.test.d.ts +0 -24
  105. package/build/__tests__/behavioral/seeding/SeedingData.test.js +0 -271
  106. package/build/__tests__/behavioral/seeding/UsingDecorators.test.d.ts +0 -37
  107. package/build/__tests__/behavioral/seeding/UsingDecorators.test.js +0 -266
  108. package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.d.ts +0 -14
  109. package/build/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +0 -117
  110. package/build/__tests__/behavioral/views/FakingSkillViewControllers.test.d.ts +0 -12
  111. package/build/__tests__/behavioral/views/FakingSkillViewControllers.test.js +0 -55
  112. package/build/__tests__/behavioral/views/Routing.test.d.ts +0 -36
  113. package/build/__tests__/behavioral/views/Routing.test.js +0 -177
  114. package/build/__tests__/behavioral/views/TestingScope.test.d.ts +0 -24
  115. package/build/__tests__/behavioral/views/TestingScope.test.js +0 -197
  116. package/build/__tests__/behavioral/views/ViewPlugins.test.d.ts +0 -12
  117. package/build/__tests__/behavioral/views/ViewPlugins.test.js +0 -83
  118. package/build/__tests__/behavioral/views/WorkingWithTimezones.test.d.ts +0 -11
  119. package/build/__tests__/behavioral/views/WorkingWithTimezones.test.js +0 -55
  120. package/build/__tests__/behavioral/views/viewFixture/ViewFixture.test.d.ts +0 -118
  121. package/build/__tests__/behavioral/views/viewFixture/ViewFixture.test.js +0 -761
  122. package/build/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.d.ts +0 -5
  123. package/build/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.js +0 -29
  124. package/build/__tests__/support/AbstractFakeDecoratorTest.d.ts +0 -5
  125. package/build/__tests__/support/AbstractFakeDecoratorTest.js +0 -27
  126. package/build/__tests__/support/EventFaker.d.ts +0 -5
  127. package/build/__tests__/support/EventFaker.js +0 -36
  128. package/build/__tests__/support/RandomViewPlugin.d.ts +0 -2
  129. package/build/__tests__/support/RandomViewPlugin.js +0 -5
  130. package/build/__tests__/support/RandomViewPlugin2.d.ts +0 -2
  131. package/build/__tests__/support/RandomViewPlugin2.js +0 -5
  132. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/.spruce/stores/stores.d.ts +0 -5
  133. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/.spruce/stores/stores.js +0 -9
  134. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.d.ts +0 -51
  135. package/build/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +0 -33
  136. package/build/__tests__/testDirsAndFiles/one-good-store-skill/src/.spruce/settings.json +0 -6
  137. package/build/__tests__/testDirsAndFiles/plugins1/build/.spruce/views/views.d.ts +0 -6
  138. package/build/__tests__/testDirsAndFiles/plugins1/build/.spruce/views/views.js +0 -11
  139. package/build/__tests__/testDirsAndFiles/plugins2/build/.spruce/views/views.d.ts +0 -6
  140. package/build/__tests__/testDirsAndFiles/plugins2/build/.spruce/views/views.js +0 -11
  141. package/build/__tests__/testDirsAndFiles/skill/build/.spruce/views/views.js +0 -18
  142. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +0 -5
  143. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.js +0 -11
  144. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +0 -7
  145. package/build/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.js +0 -19
  146. package/build/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.d.ts +0 -8
  147. package/build/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.js +0 -31
  148. package/build/__tests__/testDirsAndFiles/skill/package.json +0 -5
  149. package/build/__tests__/testDirsAndFiles/skill/src/.spruce/settings.json +0 -6
  150. package/build/__tests__/testDirsAndFiles/skill/src/.spruce/views/views.d.ts +0 -7
  151. package/build/__tests__/testDirsAndFiles/skill/src/.spruce/views/views.js +0 -17
  152. package/build/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.d.ts +0 -5
  153. package/build/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.js +0 -11
  154. package/build/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.d.ts +0 -8
  155. package/build/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.js +0 -31
  156. package/build/esm/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.d.ts +0 -15
  157. package/build/esm/__tests__/behavioral/DecoratoringEmitToPassThroughProxy.test.js +0 -128
  158. package/build/esm/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.d.ts +0 -4
  159. package/build/esm/__tests__/behavioral/DelaysConnectWhenOnlyUsingLoginDecorator.test.js +0 -40
  160. package/build/esm/__tests__/behavioral/DisablingSchemaValidationOnTest.test.d.ts +0 -5
  161. package/build/esm/__tests__/behavioral/DisablingSchemaValidationOnTest.test.js +0 -23
  162. package/build/esm/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.d.ts +0 -8
  163. package/build/esm/__tests__/behavioral/DoesntResetAccountIfOnlySeedingLocally.test.js +0 -80
  164. package/build/esm/__tests__/behavioral/FakingEventResponses.test.d.ts +0 -12
  165. package/build/esm/__tests__/behavioral/FakingEventResponses.test.js +0 -148
  166. package/build/esm/__tests__/behavioral/FixtureFactory.test.d.ts +0 -7
  167. package/build/esm/__tests__/behavioral/FixtureFactory.test.js +0 -61
  168. package/build/esm/__tests__/behavioral/LocationFixture.test.d.ts +0 -17
  169. package/build/esm/__tests__/behavioral/LocationFixture.test.js +0 -173
  170. package/build/esm/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.d.ts +0 -12
  171. package/build/esm/__tests__/behavioral/LoginDecoratorHandlingProxiesForMe.test.js +0 -113
  172. package/build/esm/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.d.ts +0 -4
  173. package/build/esm/__tests__/behavioral/MakingSureLocalEventsAreHandledLocally.test.js +0 -41
  174. package/build/esm/__tests__/behavioral/MercuryFixture.test.d.ts +0 -20
  175. package/build/esm/__tests__/behavioral/MercuryFixture.test.js +0 -223
  176. package/build/esm/__tests__/behavioral/OrganizationFixture.test.d.ts +0 -31
  177. package/build/esm/__tests__/behavioral/OrganizationFixture.test.js +0 -389
  178. package/build/esm/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.d.ts +0 -4
  179. package/build/esm/__tests__/behavioral/PatchingConsoleErrorToErrorStream.test.js +0 -18
  180. package/build/esm/__tests__/behavioral/PersonFixture.test.d.ts +0 -22
  181. package/build/esm/__tests__/behavioral/PersonFixture.test.js +0 -232
  182. package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.d.ts +0 -11
  183. package/build/esm/__tests__/behavioral/PhoneNumberIncrementor.test.js +0 -112
  184. package/build/esm/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.d.ts +0 -8
  185. package/build/esm/__tests__/behavioral/ResettingAccountLocationsInBeforeAll.test.js +0 -84
  186. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.d.ts +0 -5
  187. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInAfterAll.test.js +0 -55
  188. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.d.ts +0 -8
  189. package/build/esm/__tests__/behavioral/ResettingAccountOrgsInBeforeAll.test.js +0 -72
  190. package/build/esm/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.d.ts +0 -10
  191. package/build/esm/__tests__/behavioral/ResettingFixtureFieldsBeforeEach.test.js +0 -146
  192. package/build/esm/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.d.ts +0 -7
  193. package/build/esm/__tests__/behavioral/ResettingLocalEventListeningBeforeSeeding.test.js +0 -66
  194. package/build/esm/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.d.ts +0 -6
  195. package/build/esm/__tests__/behavioral/RetainsContractWhenLoggingInUsingDecotorator.test.js +0 -51
  196. package/build/esm/__tests__/behavioral/RoleFixture.test.d.ts +0 -15
  197. package/build/esm/__tests__/behavioral/RoleFixture.test.js +0 -143
  198. package/build/esm/__tests__/behavioral/SkillFixture.test.d.ts +0 -13
  199. package/build/esm/__tests__/behavioral/SkillFixture.test.js +0 -141
  200. package/build/esm/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.d.ts +0 -7
  201. package/build/esm/__tests__/behavioral/databases/CanUseStoresSetupInBeforeEach.test.js +0 -53
  202. package/build/esm/__tests__/behavioral/databases/DatabaseFixture.test.d.ts +0 -7
  203. package/build/esm/__tests__/behavioral/databases/DatabaseFixture.test.js +0 -48
  204. package/build/esm/__tests__/behavioral/databases/DbResetsAsExpected.test.d.ts +0 -5
  205. package/build/esm/__tests__/behavioral/databases/DbResetsAsExpected.test.js +0 -28
  206. package/build/esm/__tests__/behavioral/databases/DummyStore.d.ts +0 -55
  207. package/build/esm/__tests__/behavioral/databases/DummyStore.js +0 -43
  208. package/build/esm/__tests__/behavioral/databases/StoreFixture.test.d.ts +0 -23
  209. package/build/esm/__tests__/behavioral/databases/StoreFixture.test.js +0 -164
  210. package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.d.ts +0 -9
  211. package/build/esm/__tests__/behavioral/faking/AuthenticatingAsAPerson.test.js +0 -89
  212. package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.d.ts +0 -45
  213. package/build/esm/__tests__/behavioral/faking/FakeDecorator.test.js +0 -482
  214. package/build/esm/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.d.ts +0 -4
  215. package/build/esm/__tests__/behavioral/faking/FakeDecoratorSetsPerson.test.js +0 -28
  216. package/build/esm/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.d.ts +0 -4
  217. package/build/esm/__tests__/behavioral/faking/FakeDecoratorWhoAmI.test.js +0 -32
  218. package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.d.ts +0 -8
  219. package/build/esm/__tests__/behavioral/faking/FakeThemeManager.test.js +0 -82
  220. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.d.ts +0 -8
  221. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToALocation.test.js +0 -70
  222. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.d.ts +0 -14
  223. package/build/esm/__tests__/behavioral/faking/FakingAddingPeopleToAnOrg.test.js +0 -165
  224. package/build/esm/__tests__/behavioral/faking/FakingAuthenticator.test.d.ts +0 -5
  225. package/build/esm/__tests__/behavioral/faking/FakingAuthenticator.test.js +0 -43
  226. package/build/esm/__tests__/behavioral/faking/FakingInBeforeEach.test.d.ts +0 -6
  227. package/build/esm/__tests__/behavioral/faking/FakingInBeforeEach.test.js +0 -55
  228. package/build/esm/__tests__/behavioral/faking/FakingLocations.test.d.ts +0 -6
  229. package/build/esm/__tests__/behavioral/faking/FakingLocations.test.js +0 -55
  230. package/build/esm/__tests__/behavioral/faking/FakingRoleEvents.test.d.ts +0 -19
  231. package/build/esm/__tests__/behavioral/faking/FakingRoleEvents.test.js +0 -175
  232. package/build/esm/__tests__/behavioral/faking/FakingSkillEvents.test.d.ts +0 -24
  233. package/build/esm/__tests__/behavioral/faking/FakingSkillEvents.test.js +0 -214
  234. package/build/esm/__tests__/behavioral/faking/UpdatePerson.test.d.ts +0 -4
  235. package/build/esm/__tests__/behavioral/faking/UpdatePerson.test.js +0 -38
  236. package/build/esm/__tests__/behavioral/faking/UsingFakeDecorators.test.d.ts +0 -35
  237. package/build/esm/__tests__/behavioral/faking/UsingFakeDecorators.test.js +0 -360
  238. package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.d.ts +0 -4
  239. package/build/esm/__tests__/behavioral/faking/UsingFakesOnIncompatibleClass.test.js +0 -31
  240. package/build/esm/__tests__/behavioral/faking/WhoAmI.test.d.ts +0 -19
  241. package/build/esm/__tests__/behavioral/faking/WhoAmI.test.js +0 -142
  242. package/build/esm/__tests__/behavioral/maps/SpyingMapUtil.test.d.ts +0 -10
  243. package/build/esm/__tests__/behavioral/maps/SpyingMapUtil.test.js +0 -94
  244. package/build/esm/__tests__/behavioral/permissions/FakeAuthorizer.test.d.ts +0 -34
  245. package/build/esm/__tests__/behavioral/permissions/FakeAuthorizer.test.js +0 -324
  246. package/build/esm/__tests__/behavioral/permissions/PermissionFixture.test.d.ts +0 -5
  247. package/build/esm/__tests__/behavioral/permissions/PermissionFixture.test.js +0 -43
  248. package/build/esm/__tests__/behavioral/seeding/SeedingData.test.d.ts +0 -24
  249. package/build/esm/__tests__/behavioral/seeding/SeedingData.test.js +0 -314
  250. package/build/esm/__tests__/behavioral/seeding/UsingDecorators.test.d.ts +0 -37
  251. package/build/esm/__tests__/behavioral/seeding/UsingDecorators.test.js +0 -322
  252. package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.d.ts +0 -14
  253. package/build/esm/__tests__/behavioral/seeding/UsingDecoratorsToInstallSkills.test.js +0 -138
  254. package/build/esm/__tests__/behavioral/views/FakingSkillViewControllers.test.d.ts +0 -12
  255. package/build/esm/__tests__/behavioral/views/FakingSkillViewControllers.test.js +0 -70
  256. package/build/esm/__tests__/behavioral/views/Routing.test.d.ts +0 -36
  257. package/build/esm/__tests__/behavioral/views/Routing.test.js +0 -212
  258. package/build/esm/__tests__/behavioral/views/TestingScope.test.d.ts +0 -24
  259. package/build/esm/__tests__/behavioral/views/TestingScope.test.js +0 -238
  260. package/build/esm/__tests__/behavioral/views/ViewPlugins.test.d.ts +0 -12
  261. package/build/esm/__tests__/behavioral/views/ViewPlugins.test.js +0 -103
  262. package/build/esm/__tests__/behavioral/views/WorkingWithTimezones.test.d.ts +0 -11
  263. package/build/esm/__tests__/behavioral/views/WorkingWithTimezones.test.js +0 -64
  264. package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixture.test.d.ts +0 -118
  265. package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixture.test.js +0 -856
  266. package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.d.ts +0 -5
  267. package/build/esm/__tests__/behavioral/views/viewFixture/ViewFixtureLetsYouOverrideViewControllerFactory.test.js +0 -39
  268. package/build/esm/__tests__/support/AbstractFakeDecoratorTest.d.ts +0 -5
  269. package/build/esm/__tests__/support/AbstractFakeDecoratorTest.js +0 -34
  270. package/build/esm/__tests__/support/EventFaker.d.ts +0 -5
  271. package/build/esm/__tests__/support/EventFaker.js +0 -45
  272. package/build/esm/__tests__/support/RandomViewPlugin.d.ts +0 -2
  273. package/build/esm/__tests__/support/RandomViewPlugin.js +0 -2
  274. package/build/esm/__tests__/support/RandomViewPlugin2.d.ts +0 -2
  275. package/build/esm/__tests__/support/RandomViewPlugin2.js +0 -2
  276. package/build/esm/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.d.ts +0 -51
  277. package/build/esm/__tests__/testDirsAndFiles/one-good-store-skill/build/stores/Good.store.js +0 -41
  278. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.d.ts +0 -5
  279. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Book.svc.js +0 -9
  280. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.d.ts +0 -7
  281. package/build/esm/__tests__/testDirsAndFiles/skill/build/skillViewControllers/Spy.svc.js +0 -28
  282. package/build/esm/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.d.ts +0 -8
  283. package/build/esm/__tests__/testDirsAndFiles/skill/build/viewControllers/BookForm.vc.js +0 -26
  284. package/build/esm/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.d.ts +0 -5
  285. package/build/esm/__tests__/testDirsAndFiles/skill/src/skillViewControllers/Book.svc.js +0 -9
  286. package/build/esm/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.d.ts +0 -8
  287. package/build/esm/__tests__/testDirsAndFiles/skill/src/viewControllers/BookForm.vc.js +0 -26
  288. /package/build/{__tests__/support → esm/tests}/FakeThemeManager.d.ts +0 -0
  289. /package/build/esm/{__tests__/support → tests}/FakeThemeManager.js +0 -0
  290. /package/build/{esm/__tests__/support → tests}/FakeThemeManager.d.ts +0 -0
  291. /package/build/{__tests__/support → tests}/FakeThemeManager.js +0 -0
@@ -1,95 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const schema_1 = require("@sprucelabs/schema");
13
- const test_utils_1 = require("@sprucelabs/test-utils");
14
- const test_utils_2 = require("@sprucelabs/test-utils");
15
- const __1 = require("../..");
16
- const phoneNumberIncrementor_1 = __importDefault(require("../../utilities/phoneNumberIncrementor"));
17
- class PhoneNumberIncrementorTest extends __1.AbstractSpruceFixtureTest {
18
- static async canCreatePhoneNumberIncrementor() {
19
- test_utils_1.assert.isTruthy(phoneNumberIncrementor_1.default);
20
- test_utils_1.assert.isFunction(phoneNumberIncrementor_1.default.generate);
21
- }
22
- static async throwsWithMissingOptions(options, parameters) {
23
- const err = await test_utils_1.assert.doesThrowAsync(() => phoneNumberIncrementor_1.default.generate(options));
24
- test_utils_2.errorAssert.assertError(err, 'MISSING_PARAMETERS', {
25
- parameters,
26
- });
27
- }
28
- static async throwsWithBadNumber(phone) {
29
- const err = await test_utils_1.assert.doesThrowAsync(() => this.generate({
30
- startingPhone: phone,
31
- }));
32
- test_utils_2.errorAssert.assertError(err, 'INVALID_PARAMETERS', {
33
- parameters: ['startingPhone'],
34
- });
35
- }
36
- static async generatesExpectedNumberOfNumbers(total) {
37
- const numbers = await this.generate({
38
- totalToGenerate: total,
39
- });
40
- test_utils_1.assert.isLength(numbers, total);
41
- }
42
- static async handlesFormattedNumber() {
43
- await this.generate({
44
- startingPhone: (0, schema_1.formatPhoneNumber)('000-000-0000', false),
45
- });
46
- }
47
- static async generatesExpectedNumbers(expected) {
48
- const numbers = await this.generate({
49
- totalToGenerate: expected.length,
50
- });
51
- test_utils_1.assert.isEqualDeep(numbers, expected);
52
- }
53
- static async generateNumbersFromDifferentStartNumber() {
54
- const numbers = this.generate({ startingPhone: '001-000-0001' });
55
- test_utils_1.assert.isEqualDeep(numbers, ['+1 001-000-0001', '+1 001-000-0002']);
56
- }
57
- static generate(options) {
58
- return phoneNumberIncrementor_1.default.generate(Object.assign({ startingPhone: '000-000-0000', totalToGenerate: 2 }, options));
59
- }
60
- }
61
- exports.default = PhoneNumberIncrementorTest;
62
- __decorate([
63
- (0, test_utils_1.test)()
64
- ], PhoneNumberIncrementorTest, "canCreatePhoneNumberIncrementor", null);
65
- __decorate([
66
- (0, test_utils_1.test)('throws if all options missing', {}, [
67
- 'startingPhone',
68
- 'totalToGenerate',
69
- ]),
70
- (0, test_utils_1.test)('throws if totalToGenerate options missing', { startingPhone: '234234' }, ['totalToGenerate']),
71
- (0, test_utils_1.test)('throws if startingPhone options missing', { totalToGenerate: 1234 }, ['startingPhone'])
72
- ], PhoneNumberIncrementorTest, "throwsWithMissingOptions", null);
73
- __decorate([
74
- (0, test_utils_1.test)('throws if phone is 234234', '234234'),
75
- (0, test_utils_1.test)('throws if phone is 0000', '000')
76
- ], PhoneNumberIncrementorTest, "throwsWithBadNumber", null);
77
- __decorate([
78
- (0, test_utils_1.test)('generates 10 numbers', 10),
79
- (0, test_utils_1.test)('generates 20 numbers', 20)
80
- ], PhoneNumberIncrementorTest, "generatesExpectedNumberOfNumbers", null);
81
- __decorate([
82
- (0, test_utils_1.test)()
83
- ], PhoneNumberIncrementorTest, "handlesFormattedNumber", null);
84
- __decorate([
85
- (0, test_utils_1.test)('generates 2 expected', ['+1 000-000-0000', '+1 000-000-0001']),
86
- (0, test_utils_1.test)('generates 4 expected', [
87
- '+1 000-000-0000',
88
- '+1 000-000-0001',
89
- '+1 000-000-0002',
90
- '+1 000-000-0003',
91
- ])
92
- ], PhoneNumberIncrementorTest, "generatesExpectedNumbers", null);
93
- __decorate([
94
- (0, test_utils_1.test)()
95
- ], PhoneNumberIncrementorTest, "generateNumbersFromDifferentStartNumber", null);
@@ -1,8 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export default class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest {
3
- protected static beforeAll(): Promise<void>;
4
- protected static delayToGivesSeederTimeToWrite(): Promise<void>;
5
- protected static shouldHaveNoLocations(): Promise<void>;
6
- protected static nothing(): Promise<void>;
7
- private static listLocations;
8
- }
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
13
- const test_utils_1 = require("@sprucelabs/test-utils");
14
- const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
15
- const constants_1 = require("../../tests/constants");
16
- const login_1 = __importDefault(require("../../tests/decorators/login"));
17
- const seed_1 = __importDefault(require("../../tests/decorators/seed"));
18
- const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
19
- MercuryFixture_1.default.setShouldRequireLocalListeners(false);
20
- let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest_1.default {
21
- static async beforeAll() {
22
- await super.beforeAll();
23
- const { client } = await this.people.loginAsDemoPerson(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET_LOCATION);
24
- const orgResults = await client.emit('create-organization::v2020_12_25', {
25
- payload: {
26
- name: 'Test',
27
- },
28
- });
29
- const { organization } = spruce_event_utils_1.eventResponseUtil.getFirstResponseOrThrow(orgResults);
30
- //@ts-ignore
31
- await client.emit('create-location::v2020_12_25', {
32
- target: {
33
- organizationId: organization.id,
34
- },
35
- payload: {
36
- name: 'a location',
37
- address: {},
38
- },
39
- });
40
- }
41
- static async delayToGivesSeederTimeToWrite() {
42
- await this.wait(4000);
43
- }
44
- static async shouldHaveNoLocations() {
45
- await test_utils_1.assert.doesThrowAsync(() => this.listLocations());
46
- }
47
- static async nothing() { }
48
- static async listLocations() {
49
- return await this.locations.listLocations();
50
- }
51
- };
52
- __decorate([
53
- (0, test_utils_1.test)()
54
- ], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
55
- __decorate([
56
- (0, test_utils_1.test)()
57
- ], ResettingAccountBeforeAllTestsTest, "shouldHaveNoLocations", null);
58
- __decorate([
59
- (0, test_utils_1.test)(),
60
- (0, seed_1.default)('locations', 1)
61
- ], ResettingAccountBeforeAllTestsTest, "nothing", null);
62
- ResettingAccountBeforeAllTestsTest = __decorate([
63
- (0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET_LOCATION)
64
- ], ResettingAccountBeforeAllTestsTest);
65
- exports.default = ResettingAccountBeforeAllTestsTest;
66
- //@ts-ignore
67
- ResettingAccountBeforeAllTestsTest.cwd = process.cwd();
@@ -1,5 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export default class ResettingAccountAfterAllTestsTest extends AbstractSpruceFixtureTest {
3
- protected static afterAll(): Promise<void>;
4
- protected static seedMoar(): Promise<void>;
5
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_utils_1 = require("@sprucelabs/test-utils");
13
- const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
14
- const constants_1 = require("../../tests/constants");
15
- const login_1 = __importDefault(require("../../tests/decorators/login"));
16
- const seed_1 = __importDefault(require("../../tests/decorators/seed"));
17
- const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
18
- MercuryFixture_1.default.setShouldRequireLocalListeners(false);
19
- let ResettingAccountAfterAllTestsTest = class ResettingAccountAfterAllTestsTest extends AbstractSpruceFixtureTest_1.default {
20
- static async afterAll() {
21
- await super.afterAll();
22
- const orgs = await this.organizations.listOrganizations(constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET);
23
- test_utils_1.assert.isLength(orgs, 0);
24
- }
25
- static async seedMoar() {
26
- await this.organizations.seedDemoOrganization({
27
- phone: constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET,
28
- });
29
- }
30
- };
31
- __decorate([
32
- (0, test_utils_1.test)(),
33
- (0, seed_1.default)('organizations', 1)
34
- ], ResettingAccountAfterAllTestsTest, "seedMoar", null);
35
- ResettingAccountAfterAllTestsTest = __decorate([
36
- (0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET)
37
- ], ResettingAccountAfterAllTestsTest);
38
- exports.default = ResettingAccountAfterAllTestsTest;
39
- //@ts-ignore
40
- ResettingAccountAfterAllTestsTest.cwd = process.cwd();
41
- void ResettingAccountAfterAllTestsTest.Fixture('organization').seedDemoOrganization({
42
- name: 'Outside of test',
43
- phone: constants_1.DEMO_NUMBER_ACCOUNT_AFTER_ALL_RESET,
44
- });
@@ -1,8 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export default class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest {
3
- protected static beforeAll(): Promise<void>;
4
- protected static delayToGivesSeederTimeToWrite(): Promise<void>;
5
- protected static shouldHaveNoOrgs(): Promise<void>;
6
- protected static nothing(): Promise<void>;
7
- private static listOrgs;
8
- }
@@ -1,55 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_utils_1 = require("@sprucelabs/test-utils");
13
- const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
14
- const constants_1 = require("../../tests/constants");
15
- const login_1 = __importDefault(require("../../tests/decorators/login"));
16
- const seed_1 = __importDefault(require("../../tests/decorators/seed"));
17
- const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
18
- MercuryFixture_1.default.setShouldRequireLocalListeners(false);
19
- let ResettingAccountBeforeAllTestsTest = class ResettingAccountBeforeAllTestsTest extends AbstractSpruceFixtureTest_1.default {
20
- static async beforeAll() {
21
- await this.wait(5000);
22
- await super.beforeAll();
23
- }
24
- static async delayToGivesSeederTimeToWrite() {
25
- await this.wait(1000);
26
- }
27
- static async shouldHaveNoOrgs() {
28
- const orgs = await this.listOrgs();
29
- test_utils_1.assert.isLength(orgs, 0);
30
- }
31
- static async nothing() { }
32
- static async listOrgs() {
33
- return await this.organizations.listOrganizations();
34
- }
35
- };
36
- __decorate([
37
- (0, test_utils_1.test)()
38
- ], ResettingAccountBeforeAllTestsTest, "delayToGivesSeederTimeToWrite", null);
39
- __decorate([
40
- (0, test_utils_1.test)()
41
- ], ResettingAccountBeforeAllTestsTest, "shouldHaveNoOrgs", null);
42
- __decorate([
43
- (0, test_utils_1.test)(),
44
- (0, seed_1.default)('organizations', 1)
45
- ], ResettingAccountBeforeAllTestsTest, "nothing", null);
46
- ResettingAccountBeforeAllTestsTest = __decorate([
47
- (0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET)
48
- ], ResettingAccountBeforeAllTestsTest);
49
- exports.default = ResettingAccountBeforeAllTestsTest;
50
- //@ts-ignore
51
- ResettingAccountBeforeAllTestsTest.cwd = process.cwd();
52
- void ResettingAccountBeforeAllTestsTest.Fixture('organization').seedDemoOrganization({
53
- name: 'Outside of test',
54
- phone: constants_1.DEMO_NUMBER_ACCOUNT_BEFORE_ALL_RESET,
55
- });
@@ -1,10 +0,0 @@
1
- import { AbstractSpruceFixtureTest } from '../..';
2
- export default class ResettingFixtureFieldsBeforeEachTest extends AbstractSpruceFixtureTest {
3
- protected static shouldBeAbleToGetAllFixtures(): void;
4
- protected static privatePropsNotSetAtFirst(): Promise<void>;
5
- protected static canSetEachPrivateProp(): Promise<void>;
6
- protected static afterEachClearsLocalProps(): Promise<void>;
7
- private static assertLocalPropsAreCleared;
8
- private static getFixture;
9
- private static getPrivateProp;
10
- }
@@ -1,137 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const data_stores_1 = require("@sprucelabs/data-stores");
13
- const test_utils_1 = require("@sprucelabs/test-utils");
14
- const __1 = require("../..");
15
- const PermissionFixture_1 = __importDefault(require("../../tests/fixtures/PermissionFixture"));
16
- const SeedFixture_1 = __importDefault(require("../../tests/fixtures/SeedFixture"));
17
- const toCheck = [
18
- {
19
- prop: 'views',
20
- privatePropName: '_views',
21
- fixtureName: 'view',
22
- instanceOf: __1.ViewFixture,
23
- },
24
- {
25
- prop: 'roles',
26
- privatePropName: '_roles',
27
- fixtureName: 'role',
28
- instanceOf: __1.RoleFixture,
29
- },
30
- {
31
- prop: 'locations',
32
- privatePropName: '_locations',
33
- fixtureName: 'location',
34
- instanceOf: __1.LocationFixture,
35
- },
36
- {
37
- prop: 'organizations',
38
- privatePropName: '_organizations',
39
- fixtureName: 'organization',
40
- instanceOf: __1.OrganizationFixture,
41
- },
42
- {
43
- prop: 'people',
44
- privatePropName: '_people',
45
- fixtureName: 'person',
46
- instanceOf: __1.PersonFixture,
47
- },
48
- {
49
- prop: 'seeder',
50
- privatePropName: '_seeder',
51
- fixtureName: 'seed',
52
- instanceOf: SeedFixture_1.default,
53
- },
54
- {
55
- prop: 'skills',
56
- privatePropName: '_skills',
57
- fixtureName: 'skill',
58
- instanceOf: __1.SkillFixture,
59
- },
60
- {
61
- prop: 'mercury',
62
- privatePropName: '_mercury',
63
- fixtureName: 'mercury',
64
- instanceOf: __1.MercuryFixture,
65
- },
66
- {
67
- prop: 'database',
68
- privatePropName: '_database',
69
- fixtureName: 'database',
70
- instanceOf: data_stores_1.DatabaseFixture,
71
- },
72
- {
73
- prop: 'stores',
74
- privatePropName: '_stores',
75
- fixtureName: 'store',
76
- instanceOf: __1.StoreFixture,
77
- },
78
- {
79
- prop: 'permissions',
80
- privatePropName: '_permissions',
81
- fixtureName: 'permission',
82
- instanceOf: PermissionFixture_1.default,
83
- },
84
- ];
85
- class ResettingFixtureFieldsBeforeEachTest extends __1.AbstractSpruceFixtureTest {
86
- static shouldBeAbleToGetAllFixtures() {
87
- for (const check of toCheck) {
88
- const fixture = this.getFixture(check);
89
- test_utils_1.assert.isTruthy(fixture, `No fixture found for ${check.fixtureName}`);
90
- const local = this.getPrivateProp(check);
91
- test_utils_1.assert.isTruthy(local, `Did not set this.${check.privatePropName}`);
92
- test_utils_1.assert.isEqual(fixture, local);
93
- }
94
- }
95
- static async privatePropsNotSetAtFirst() {
96
- this.assertLocalPropsAreCleared();
97
- }
98
- static async canSetEachPrivateProp() {
99
- for (const check of toCheck) {
100
- //@ts-ignore
101
- this[check.prop] = this.Fixture(check.fixtureName);
102
- }
103
- }
104
- static async afterEachClearsLocalProps() {
105
- for (const check of toCheck) {
106
- this.getFixture(check);
107
- }
108
- await this.afterEach();
109
- this.assertLocalPropsAreCleared();
110
- }
111
- static assertLocalPropsAreCleared() {
112
- for (const check of toCheck) {
113
- test_utils_1.assert.isFalsy(this.getPrivateProp(check));
114
- }
115
- }
116
- static getFixture(check) {
117
- //@ts-ignore
118
- return this[check.prop];
119
- }
120
- static getPrivateProp(check) {
121
- //@ts-ignore
122
- return this[check.privatePropName];
123
- }
124
- }
125
- exports.default = ResettingFixtureFieldsBeforeEachTest;
126
- __decorate([
127
- (0, test_utils_1.test)()
128
- ], ResettingFixtureFieldsBeforeEachTest, "shouldBeAbleToGetAllFixtures", null);
129
- __decorate([
130
- (0, test_utils_1.test)()
131
- ], ResettingFixtureFieldsBeforeEachTest, "privatePropsNotSetAtFirst", null);
132
- __decorate([
133
- (0, test_utils_1.test)()
134
- ], ResettingFixtureFieldsBeforeEachTest, "canSetEachPrivateProp", null);
135
- __decorate([
136
- (0, test_utils_1.test)()
137
- ], ResettingFixtureFieldsBeforeEachTest, "afterEachClearsLocalProps", null);
@@ -1,7 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export declare class ResettingLocalEventListeningBeforeSeedingTest extends AbstractSpruceFixtureTest {
3
- private static hitCount;
4
- protected static beforeEach(): Promise<void>;
5
- protected static testClientIsResetBeforeSeeding(): Promise<void>;
6
- protected static hitCountShouldBeZero(): Promise<void>;
7
- }
@@ -1,54 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ResettingLocalEventListeningBeforeSeedingTest = void 0;
13
- const test_utils_1 = require("@sprucelabs/test-utils");
14
- const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
15
- const constants_1 = require("../../tests/constants");
16
- const login_1 = __importDefault(require("../../tests/decorators/login"));
17
- const seed_1 = __importDefault(require("../../tests/decorators/seed"));
18
- const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
19
- MercuryFixture_1.default.setShouldRequireLocalListeners(false);
20
- let ResettingLocalEventListeningBeforeSeedingTest = class ResettingLocalEventListeningBeforeSeedingTest extends AbstractSpruceFixtureTest_1.default {
21
- static async beforeEach() {
22
- await super.beforeEach();
23
- }
24
- static async testClientIsResetBeforeSeeding() {
25
- await login_1.default.getClient().on('create-organization::v2020_12_25', () => {
26
- this.hitCount++;
27
- return {
28
- organization: {
29
- id: (0, test_utils_1.generateId)(),
30
- dateCreated: new Date().getTime(),
31
- name: (0, test_utils_1.generateId)(),
32
- slug: (0, test_utils_1.generateId)(),
33
- },
34
- };
35
- });
36
- }
37
- static async hitCountShouldBeZero() {
38
- test_utils_1.assert.isEqual(this.hitCount, 0);
39
- }
40
- };
41
- exports.ResettingLocalEventListeningBeforeSeedingTest = ResettingLocalEventListeningBeforeSeedingTest;
42
- ResettingLocalEventListeningBeforeSeedingTest.hitCount = 0;
43
- __decorate([
44
- (0, seed_1.default)('organizations', 1)
45
- ], ResettingLocalEventListeningBeforeSeedingTest, "beforeEach", null);
46
- __decorate([
47
- (0, test_utils_1.test)()
48
- ], ResettingLocalEventListeningBeforeSeedingTest, "testClientIsResetBeforeSeeding", null);
49
- __decorate([
50
- (0, test_utils_1.test)()
51
- ], ResettingLocalEventListeningBeforeSeedingTest, "hitCountShouldBeZero", null);
52
- exports.ResettingLocalEventListeningBeforeSeedingTest = ResettingLocalEventListeningBeforeSeedingTest = __decorate([
53
- (0, login_1.default)(constants_1.DEMO_NUMBER_TEST_CLIENT_RECENT)
54
- ], ResettingLocalEventListeningBeforeSeedingTest);
@@ -1,6 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export default class RetainsContractWhenLoggingInUsingDecorator extends AbstractSpruceFixtureTest {
3
- private static client;
4
- protected static beforeEach(): Promise<void>;
5
- protected static clientStillHasContract(): Promise<void>;
6
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const test_utils_1 = require("@sprucelabs/test-utils");
13
- const AbstractSpruceFixtureTest_1 = __importDefault(require("../../tests/AbstractSpruceFixtureTest"));
14
- const constants_1 = require("../../tests/constants");
15
- const login_1 = __importDefault(require("../../tests/decorators/login"));
16
- const MercuryFixture_1 = __importDefault(require("../../tests/fixtures/MercuryFixture"));
17
- const StoreFixture_1 = __importDefault(require("../../tests/fixtures/StoreFixture"));
18
- // eslint-disable-next-line spruce/prohibit-import-from-build-folder
19
- const Good_store_1 = __importDefault(require("../testDirsAndFiles/one-good-store-skill/build/stores/Good.store"));
20
- MercuryFixture_1.default.setShouldRequireLocalListeners(false);
21
- let RetainsContractWhenLoggingInUsingDecorator = class RetainsContractWhenLoggingInUsingDecorator extends AbstractSpruceFixtureTest_1.default {
22
- static async beforeEach() {
23
- await super.beforeEach();
24
- this.client = login_1.default.getClient();
25
- }
26
- static async clientStillHasContract() {
27
- await this.client.on('whoami::v2020_12_25', () => ({
28
- auth: {},
29
- type: 'authenticated',
30
- }));
31
- }
32
- };
33
- __decorate([
34
- (0, test_utils_1.test)()
35
- ], RetainsContractWhenLoggingInUsingDecorator, "clientStillHasContract", null);
36
- RetainsContractWhenLoggingInUsingDecorator = __decorate([
37
- (0, login_1.default)(constants_1.DEMO_NUMBER_ACCOUNT_RESET)
38
- ], RetainsContractWhenLoggingInUsingDecorator);
39
- exports.default = RetainsContractWhenLoggingInUsingDecorator;
40
- StoreFixture_1.default.setStore('good', Good_store_1.default);
@@ -1,15 +0,0 @@
1
- import AbstractSpruceFixtureTest from '../../tests/AbstractSpruceFixtureTest';
2
- export default class RoleFixtureTest extends AbstractSpruceFixtureTest {
3
- private static fixture;
4
- private static client;
5
- protected static beforeEach(): Promise<void>;
6
- protected static hasRoleFixture(): void;
7
- protected static cantListRolesWithoutOrg(): Promise<void>;
8
- protected static listsValidRoles(): Promise<void>;
9
- protected static listsWorkingRolesByDefault(): Promise<void>;
10
- protected static listMetaRolesWithOptions(): Promise<void>;
11
- protected static canPassOwnOrg(): Promise<void>;
12
- private static getNewestOrg;
13
- private static assertListedRolesMatchExpected;
14
- private static listRoles;
15
- }