mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03:00
3d989eba23
refs https://github.com/TryGhost/Toolbox/issues/354 - this commit turns the Ghost repo into a monorepo so we can bring our internal packages back in, which makes life easier when working on Ghost
29 lines
861 B
JavaScript
29 lines
861 B
JavaScript
const should = require('should');
|
|
const {memberCountRounding, getMemberStats} = require('../../core/frontend/utils/member-count.js');
|
|
|
|
describe('Front-end member stats ', function () {
|
|
it('should return free', async function () {
|
|
const members = await getMemberStats();
|
|
const {free} = members;
|
|
should.exist(free);
|
|
});
|
|
|
|
it('should return paid', async function () {
|
|
const members = await getMemberStats();
|
|
const {paid} = members;
|
|
should.exist(paid);
|
|
});
|
|
|
|
it('should return comped', async function () {
|
|
const members = await getMemberStats();
|
|
const {comped} = members;
|
|
should.exist(comped);
|
|
});
|
|
|
|
it('should return total', async function () {
|
|
const members = await getMemberStats();
|
|
const {total} = members;
|
|
should.exist(total);
|
|
});
|
|
});
|