Removed other ancient skipped storge test

- My IDE "fixed" this skipped test by unskipping it without me realising when I removed the other one 🙈
This commit is contained in:
Hannah Wolfe 2021-05-21 19:53:38 +01:00
parent b749fed5b9
commit 9c6466c4ed
No known key found for this signature in database
GPG Key ID: 9F8C7532D0A6BA55

View File

@ -104,23 +104,6 @@ describe('storage utils', function () {
result.should.be.equal(true);
});
// 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('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.isLocalImage(url);
should.exist(result);
result.should.be.equal(true);
});
it('should return true when absolute URL with subdirectory and local file', function () {
const url = 'http://myblog.com/blog/content/images/2017/07/ghost-logo.png';
let result;