UNPKG

chocolate

Version:

A full stack Node.js web framework built using Coffeescript

20 lines (16 loc) 533 B
// Generated by CoffeeScript 1.12.6 (function() { var lorem; lorem = require('chocolate/general/litelorem'); describe('lorem', function() { it('creates a lorem word', function() { return expect(lorem.word()).not.toBeNull(); }); it('creates a lorem word with a length greater than 0', function() { return expect(lorem.word().length).toBeGreaterThan(0); }); return it('creates six words', function() { return expect(lorem.words(6).split(' ').length).toBe(6); }); }); }).call(this);