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:
parent
6f4346d4a2
commit
ab9a470623
1 changed files with 0 additions and 17 deletions
|
@ -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'];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue