0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Removed dead code in redirects.test

refs https://github.com/TryGhost/Toolbox/issues/139

- This code was either not executed and did nothing useful for the test suite. Shaves off extra 2s from the test runtime
This commit is contained in:
Naz 2021-11-29 11:55:13 +04:00
parent 6f4346d4a2
commit ab9a470623

View file

@ -28,27 +28,10 @@ describe('Frontend Routing:Redirects', function () {
};
}
function addPosts(done) {
testUtils.clearData().then(function () {
return testUtils.initData();
}).then(function () {
return testUtils.fixtures.insertPostsAndTags();
}).then(function () {
done();
});
}
afterEach(function () {
sinon.restore();
});
before(function () {
return testUtils.startGhost()
.then(function () {
request = supertest.agent(config.get('url'));
});
});
// TODO: convert to unit tests
const redirectsFileExts = ['.json', '.yaml'];