0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/test
kirrg001 082410f6bb Changed how api routing test generate the API url
refs #9866

- we would like to avoid doing for each api version e.g.
  testUtils.API.getQueryUrl('webhooks/', v2)
  testUtils.API.getQueryUrl('webhooks/', v3, admin)
- the URL should be easily accessible per api version routing folder
- so i thought it makes the most sense to add a local utils file

e.g. localUtils.API.getQueryUrl('webhooks/') => returns target api url for target api folder by default
e.g. localUtils.API.content.getQueryUrl('webhooks/') => returns content api url for target api folder

- it also makes it easy for us to copy the routing tests over without changing anything
- we just need to provide the local utility
2018-10-05 16:49:46 +02:00
..
functional/routes Changed how api routing test generate the API url 2018-10-05 16:49:46 +02:00
integration Refactor URL generation from models (#9917) 2018-10-03 15:44:30 +02:00
unit Moved test/unit/api files to test/unit/api/v0.1 2018-10-05 15:11:35 +02:00
utils Changed how api routing test generate the API url 2018-10-05 16:49:46 +02:00
.eslintrc.json
.jshintrc