Fixed admin views path mocking override in tests

- for some reason, this test seems to be failing now we've pulled it out
  of the general CI
- it makes sense when the repo is clean, because the html files don't
  exist, but I don't understand how they were working before... 🤔
- anyway, we should be overriding the path to the test fixtures admin
  view files here
- this fixes the unit tests
This commit is contained in:
Daniel Lockyer 2022-02-16 19:04:57 +01:00
parent 08eaed152b
commit 55204bf725

View File

@ -1,5 +1,6 @@
require('should');
const sinon = require('sinon');
const path = require('path');
const configUtils = require('../../../../utils/configUtils');
const controller = require('../../../../../core/server/web/admin/controller');
@ -14,6 +15,7 @@ describe('Admin App', function () {
};
configUtils.restore();
configUtils.set('paths:adminViews', path.resolve('test/utils/fixtures/admin-views'));
});
afterEach(function () {