Ghost/core/test/unit
Hannah Wolfe 5f2c913fc1 Clean up paginated URL generation
refs #5091, #6612

- unify getNextUrl & getPrevUrl into getPaginatedUrl
- ensure that it can generate a prev, next or exact page no url
- ensure that it can figure out the base url
- use the same code from the page_url helper
- refactor the tests to ensure there's 100% coverage

Following on from #6612, this ensures that pagination always works regardless of whether the channel is default or custom
2016-03-20 22:35:00 +00:00
..
controllers/frontend Merge pull request #6507 from cameronviner/6505 2016-02-18 07:44:23 +00:00
metadata Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
middleware Remove should-sinon dependency 2016-03-14 16:52:22 +00:00
models_plugins Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
server_helpers Clean up paginated URL generation 2016-03-20 22:35:00 +00:00
api_utils_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
apps_filters_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
apps_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
config_spec.js Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
error_handling_spec.js Merge pull request #6507 from cameronviner/6505 2016-02-18 07:44:23 +00:00
exporter_spec.js Remove should-sinon dependency 2016-03-14 16:52:22 +00:00
filters_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
ghost_url_spec.js ensure null query options don't break ghost-url 2016-02-29 00:25:38 -06:00
importer_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
mail_spec.js deps: bluebird@3.1.2 2016-03-01 14:47:23 -06:00
migration_fixture_spec.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
migration_spec.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
permissions_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
rss_spec.js Merge pull request #6507 from cameronviner/6505 2016-02-18 07:44:23 +00:00
server_helpers_index_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
server_helpers_template_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
server_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
server_utils_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
showdown_client_integrated_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
sitemap_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
storage_local-file-store_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
utils_pipeline_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00
versioning_spec.js Improve getDatabaseVersion & versioning tests 2016-03-14 17:11:04 +00:00
xmlrpc_spec.js Removed uneeded jshint comments in order to cleanup the tests 2016-02-17 12:52:43 +00:00