mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
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:
parent
08eaed152b
commit
55204bf725
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user