Fixed settings tests due to Bookshelf update

- Bookshelf now seems to error out when the response is undefined and
  expects something
- this commit updates the test to the same empty response we use
  elsewhere
This commit is contained in:
Daniel Lockyer 2021-08-25 12:37:47 +02:00
parent 8fcb57bd6a
commit 7a3725fdbf

View File

@ -171,7 +171,7 @@ describe('Unit: models/settings', function () {
tracker.install();
tracker.on('query', (query) => {
query.response();
query.response([{}]);
});
const setting = models.Settings.forge({key, value, type, group});