mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
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:
parent
b749fed5b9
commit
9c6466c4ed
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user