0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Removed ancient skipped storage test

- this has been skipped for 4 years, it must not be needed :D
This commit is contained in:
Hannah Wolfe 2021-05-21 19:46:37 +01:00
parent 730811fb6e
commit b749fed5b9
No known key found for this signature in database
GPG key ID: 9F8C7532D0A6BA55

View file

@ -32,23 +32,6 @@ describe('storage utils', function () {
result.should.be.equal('/2017/07/ghost-logo.png');
});
// Very unlikely that this is necessary, because Ghost will redirect the request beforehand.
// See https://github.com/TryGhost/Ghost/blob/master/core/server/web/shared/middlewares/url-redirects.js#L76
// TODO: Change the code to make this test work
it.skip('should return local file storage path for https request, when blog setup as http', function () {
const url = 'https://myblog.com/content/images/2017/07/ghost-logo.png';
let result;
urlForStub = sinon.stub(urlUtils, 'urlFor');
urlForStub.withArgs('home').returns('http://myblog.com/');
urlGetSubdirStub = sinon.stub(urlUtils, 'getSubdir');
urlGetSubdirStub.returns('');
result = storageUtils.getLocalFileStoragePath(url);
should.exist(result);
result.should.be.equal('/2017/07/ghost-logo.png');
});
it('should return local file storage path for absolute URL with subdirectory', function () {
const url = 'http://myblog.com/blog/content/images/2017/07/ghost-logo.png';
let result;
@ -124,7 +107,7 @@ describe('storage utils', function () {
// Very unlikely that this is necessary, because Ghost will redirect the request beforehand.
// See https://github.com/TryGhost/Ghost/blob/master/core/server/web/shared/middlewares/url-redirects.js#L76
// TODO: Change the code to make this test work
it.skip('should return local file storage path for https request, when blog setup as http', function () {
it('should return local file storage path for https request, when blog setup as http', function () {
const url = 'https://myblog.com/content/images/2017/07/ghost-logo.png';
let result;