Ghost/core/test/unit/models
Katharina Irrgang 835fd6c45b
Removed knex mock (#9685)
no issue

- this mock eat already too much of my/our time
- the idea of adding a knex mock was definitely a failed approach/try
- it's too much to maintaince and have not found a module which does this already
  - we have to support any query format
  - this is too crazy
- the idea was to use the knex mock for model unit tests, because if we want to unit test models we have to
  run through bookshelf, because the whole model layer depends on bookshelf e.g. events
- for now we simply use the real database
  - we could use the sqlite3 memory mode, but that would mean every unit test runs on sqlite3
  - something to consider for later e.g. run unit tests on one matrix
  - run the rest on another matrix for sqlite + mysql
2018-06-12 20:26:16 +02:00
..
base Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
plugins Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
invite_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
permission_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
post_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
tag_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
user_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00