0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed alpha flag tests

refs 025eb8bd79

`mutipleProducts` has now been moved out of alpha to beta, though the alpha feature tests were still using it to verify alpha behavior. The tests are now updated to use `dashboardTwo` feature as base alpha feature instead.
This commit is contained in:
Rishabh 2021-09-09 17:05:07 +05:30
parent 025eb8bd79
commit c7972c20a5

View file

@ -22,16 +22,16 @@ describe('Labs Service', function () {
sinon.stub(process.env, 'NODE_ENV').value('production');
sinon.stub(settingsCache, 'get');
settingsCache.get.withArgs('labs').returns({
multipleProducts: true
dashboardTwo: true
});
labs.getAll().should.eql({
multipleProducts: true,
dashboardTwo: true,
members: true
});
labs.isSet('members').should.be.true;
labs.isSet('multipleProducts').should.be.true;
labs.isSet('dashboardTwo').should.be.true;
});
it('returns a falsy alpha flag when dev experiments in NOT toggled', function () {
@ -39,7 +39,7 @@ describe('Labs Service', function () {
sinon.stub(process.env, 'NODE_ENV').value('production');
sinon.stub(settingsCache, 'get');
settingsCache.get.withArgs('labs').returns({
multipleProducts: true
dashboardTwo: true
});
labs.getAll().should.eql({
@ -47,7 +47,7 @@ describe('Labs Service', function () {
});
labs.isSet('members').should.be.true;
labs.isSet('multipleProducts').should.be.false;
labs.isSet('dashboardTwo').should.be.false;
});
it('members flag is true when members_signup_access setting is "all"', function () {