mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
🎨 🔦 no support for active storage adapter as string
refs #6982 [ci skip]
This commit is contained in:
parent
3e02dbf734
commit
bd4590d0b5
2 changed files with 8 additions and 11 deletions
|
@ -153,7 +153,7 @@ describe('Config', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('should allow setting a custom active storage as string', function () {
|
||||
it('no effect: setting a custom active storage as string', function () {
|
||||
var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3');
|
||||
|
||||
configUtils.set({
|
||||
|
@ -163,20 +163,15 @@ describe('Config', function () {
|
|||
}
|
||||
});
|
||||
|
||||
config.get('storage').should.have.property('active', {
|
||||
images: 's3',
|
||||
themes: 'local-file-store'
|
||||
});
|
||||
|
||||
config.get('storage').should.have.property('active', 's3');
|
||||
config.get('storage').should.have.property('s3', {});
|
||||
});
|
||||
|
||||
it('should use default theme adapter when passing an object', function () {
|
||||
var storagePath = path.join(config.get('paths').contentPath, 'storage', 's3');
|
||||
|
||||
it('able to set storage for themes (but not officially supported!)', function () {
|
||||
configUtils.set({
|
||||
storage: {
|
||||
active: {
|
||||
images: 'local-file-store',
|
||||
themes: 's3'
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +179,7 @@ describe('Config', function () {
|
|||
|
||||
config.get('storage').should.have.property('active', {
|
||||
images: 'local-file-store',
|
||||
themes: 'local-file-store'
|
||||
themes: 's3'
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -85,7 +85,9 @@ describe('storage: index_spec', function () {
|
|||
|
||||
configUtils.set({
|
||||
storage: {
|
||||
active: 'another-storage'
|
||||
active: {
|
||||
images: 'another-storage'
|
||||
}
|
||||
},
|
||||
paths: {
|
||||
storage: __dirname + '/another-storage.js'
|
||||
|
|
Loading…
Add table
Reference in a new issue