@sprucelabs/spruce-test-fixtures 62.2.24 → 62.2.26

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