Ghost/ghost/core/test/e2e-frontend/member_stats.test.js
Daniel Lockyer 89493893d1 Removed all unused variables from test files
- this cleans up all imports or variables that aren't currently being used
- this really helps keep the tests clean by only allowing what is needed
- I've left `should` as an exemption for now because we need to clean up
  how it is used
2023-03-10 14:29:55 +01:00

29 lines
840 B
JavaScript

const should = require('should');
const {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);
});
});