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:
parent
730811fb6e
commit
b749fed5b9
1 changed files with 1 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue