0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/test/unit/frontend/helpers/total_members.test.js
Ronald Langeveld a0c8db46fb
Member Counter template helpers ()
ref https://github.com/TryGhost/Team/issues/1667

Introducing 2 new helper handlebars tags, `{{total_members}}` and `{{total_paid_members}}` ideal for Member Sites who want to display these metrics to incentivise users to upgrade.
2022-07-14 10:10:02 +02:00

10 lines
353 B
JavaScript

const should = require('should');
const total_members = require('../../../../core/frontend/helpers/total_members');
describe('{{total_members}} helper', function () {
it('can render total members', async function () {
const rendered = await total_members.call({total: 50000});
should.equal(rendered.string, '50,000+');
});
});