0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed regression test for integrity check

no issue

- The file that is better suited for integrity check is the `*-default.yaml` config because it's the one that gets copied through when there is none or configuration is broken
This commit is contained in:
Nazar Gargol 2020-09-10 11:20:38 +12:00
parent 5582d030e3
commit a8202eb80d

View file

@ -40,7 +40,7 @@ describe('DB version integrity', function () {
// If this test is failing, then it is likely a change has been made that requires a DB version bump,
// and the values above will need updating as confirmation
it('should not change without fixing this test', function () {
const routesPath = path.join(config.getContentPath('settings'), 'routes.yaml');
const routesPath = path.join(config.getContentPath('settings'), 'routes-default.yaml');
const defaultRoutes = validateFrontendSettings(yaml.safeLoad(fs.readFileSync(routesPath, 'utf-8')));
const tablesNoValidation = _.cloneDeep(schema.tables);