verb
Version:
Verb makes it easy to build project documentation using simple markdown templates, with zero configuration required.
31 lines (24 loc) • 856 B
JavaScript
var expect = require('chai').expect;
var verb = require('../');
/**
* Mixin: contributors
*/
describe('mixins:', function () {
describe('_.homepage:', function () {
it.skip('should return a normalized version of the custom homepage URL using a mixin.', function () {
var actual = verb.process('{%= _.homepage() %}');
var expected = 'https://github.com/assemble/verb';
expect(actual.content).to.eql(expected);
});
});
describe('mixins.date:', function () {
it('should return the current year.', function () {
var actual = verb.process('{%= _.date("YYYY") %}');
expect(actual.content).to.eql('2014');
});
it('should return the full date.', function () {
var actual = verb.process('{%= _.date("full") %}');
expect(actual.content.indexOf(2014) !== -1).to.eql(true);
});
});
});