mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
parent
8fc4e0fdcc
commit
bd6b3099d8
1 changed files with 3 additions and 3 deletions
|
@ -143,7 +143,7 @@ describe('Integration: Service: feature', function () {
|
|||
});
|
||||
});
|
||||
|
||||
it('returns true for set flag with config false and labs true', async function () {
|
||||
it('returns true for set flag with config is an object and labs true', async function () {
|
||||
stubSettings(server, {testFlag: true});
|
||||
stubUser(server, {});
|
||||
|
||||
|
@ -153,7 +153,7 @@ describe('Integration: Service: feature', function () {
|
|||
await session.populateUser();
|
||||
|
||||
let service = this.owner.lookup('service:feature');
|
||||
service.config.testFlag = false;
|
||||
service.config.testFlag = {key: 'value'};
|
||||
|
||||
return service.fetch().then(() => {
|
||||
expect(service.get('labs.testFlag')).to.be.true;
|
||||
|
@ -223,7 +223,7 @@ describe('Integration: Service: feature', function () {
|
|||
await session.populateUser();
|
||||
|
||||
let service = this.owner.lookup('service:feature');
|
||||
service.config.testFlag = false;
|
||||
service.config.testFlag = {key: 'value'};
|
||||
|
||||
return service.fetch().then(() => {
|
||||
expect(service.get('testFlag')).to.be.false;
|
||||
|
|
Loading…
Add table
Reference in a new issue