mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05: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 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
require('should');
|
require('should');
|
||||||
const sinon = require('sinon');
|
const sinon = require('sinon');
|
||||||
|
const path = require('path');
|
||||||
const configUtils = require('../../../../utils/configUtils');
|
const configUtils = require('../../../../utils/configUtils');
|
||||||
const controller = require('../../../../../core/server/web/admin/controller');
|
const controller = require('../../../../../core/server/web/admin/controller');
|
||||||
|
|
||||||
|
@ -14,6 +15,7 @@ describe('Admin App', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
configUtils.restore();
|
configUtils.restore();
|
||||||
|
configUtils.set('paths:adminViews', path.resolve('test/utils/fixtures/admin-views'));
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue