0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated admin tests for feature helper change

refs 488aa983d0
This commit is contained in:
Simon Backx 2023-05-25 15:37:47 +02:00
parent 8fc4e0fdcc
commit bd6b3099d8

View file

@ -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;