Files
cloudron-box/src/test/branding-test.js
Girish Ramakrishnan d049aa1b57 2022 now
2022-01-05 09:17:13 -08:00

31 lines
840 B
JavaScript

/* global it:false */
/* global describe:false */
/* global before:false */
/* global after:false */
'use strict';
const branding = require('../branding.js'),
common = require('./common.js'),
constants = require('../constants.js'),
expect = require('expect.js');
describe('Branding', function () {
const { setup, cleanup } = common;
before(setup);
after(cleanup);
it('can render default footer', async function () {
expect(branding.renderFooter(constants.FOOTER)).to.contain('(https://cloudron.io)');
});
it('can render footer', async function () {
expect(branding.renderFooter('BigFoot Inc')).to.be('BigFoot Inc');
});
it('can render footer with YEAR', async function () {
expect(branding.renderFooter('BigFoot Inc %YEAR%')).to.be('BigFoot Inc 2022');
});
});