0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Updated test to use the correct url service utils

- the integrationTesting utils are specific to the express mock style of testing
- all other tests can use the url-service-utils to check the url service is finished
This commit is contained in:
Hannah Wolfe 2021-10-20 11:34:37 +01:00
parent b804dcec30
commit f652b3f164
No known key found for this signature in database
GPG key ID: 9F8C7532D0A6BA55

View file

@ -9,6 +9,7 @@ const moment = require('moment');
const path = require('path');
const testUtils = require('../../utils');
const configUtils = require('../../utils/configUtils');
const urlServiceUtils = require('../../utils/url-service-utils');
const cheerio = require('cheerio');
const config = require('../../../core/shared/config');
const api = require('../../../core/server/api');
@ -643,7 +644,7 @@ describe('Dynamic Routing', function () {
path: path.join(config.get('paths:appRoot'), 'test', 'utils', 'fixtures', 'settings', 'newroutes.yaml')
}
}).then(() => {
return testUtils.integrationTesting.urlService.isFinished({disableDbReadyEvent: true});
return urlServiceUtils.isFinished({disableDbReadyEvent: true});
});
});