0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test/utils
Fabien 'egg' O'Carroll 26c3e77640
Ordered Products by their monthly price by default (#13234)
refs https://github.com/TryGhost/Team/issues/714

In order to order products by their monthly price we need to apply a
join with the stripe_prices table when querying so we have access to the
amount column of stripe_prices.

As this ordering is core to how the tiers feature is intended to work,
we have added it as the default order. But this can be overriden by
manually passing the order option.

Also ensured that we do not create duplicate products in test fixtures
2021-08-20 14:46:06 +02:00
..
fixtures Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
mocks 🔥 Added support for Node 14 2020-10-23 12:57:02 +01:00
acceptance-utils.js Changed to use debug not console in acceptance tests 2021-07-06 20:24:49 +01:00
admin-utils.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
api.js Extracted promise libs and history into @tryghost/promise 2020-08-11 18:44:21 +01:00
assertions.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
configUtils.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
db-utils.js Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
fixture-utils.js Ordered Products by their monthly price by default (#13234) 2021-08-20 14:46:06 +02:00
index.js Moved acceptance test utils into own file 2021-06-01 13:17:45 +01:00
old-integration-utils.js Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
overrides.js Improved dev tooling (#13118) 2021-07-05 20:02:22 +01:00
redirects.js Split test utilities out into separate files 2021-02-16 20:17:04 +00:00
url-service-utils.js Replaced db.ready event with direct call to urlservice 2021-02-23 10:05:59 +00:00
urlUtils.js Swapped out usage of stubUrlUtils for configUtils 2021-06-21 11:07:30 +01:00