mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
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.
10 lines
353 B
JavaScript
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+');
|
|
});
|
|
});
|