0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/test/unit/services/labs_spec.js

28 lines
703 B
JavaScript
Raw Normal View History

const should = require('should');
const sinon = require('sinon');
const labs = require('../../../core/server/services/labs');
describe('Labs Service', function () {
afterEach(function () {
sinon.restore();
});
it('always returns members true flag', function () {
labs.getAll().should.eql({
members: true
});
labs.isSet('members').should.be.true;
});
it('isSet returns false for undefined', function () {
labs.isSet('bar').should.be.false;
});
it('isSet always returns false for deprecated', function () {
labs.isSet('subscribers').should.be.false;
labs.isSet('publicAPI').should.be.false;
});
});