0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test
Hannah Wolfe 9309adc511 Exporter cleanup & tests
refs #6301

- change knex getter def to be configurable, else it is not testable
- remove exportPath and lang from config - neither are used
- add client_trusted_domains to tables which shouldn't be exported as there are no clients in the export
- change export signature to be an object with `doExport` function consistent with import & easier to test
- cleanup export code so it is clearer, easier to read & to test:
  - use mapSeries instead of sequence
  - use Promise.props instead of Promise.join
  - split functionality into smaller functions
- add test coverage
2016-03-12 19:01:25 +00:00
..
functional Serve immediate 404 for static files (no fallthru) 2016-02-21 19:17:27 +00:00
integration Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
unit Exporter cleanup & tests 2016-03-12 19:01:25 +00:00
utils Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
.jshintrc