UNPKG

generator-verb

Version:

Kickstart documentation for any project! This is the official Yeoman generator for Verb, the zero-configuration markdown docs generator that is extremely easy to use and extend.

27 lines (22 loc) 728 B
/*! * <%= _.slugify(appname) %> <https://github.com/<%= username %>/<%= _.slugify(appname) %>> * * Copyright (c) <%= (new Date).getFullYear() %> <%= authorname %>. * Licensed under the MIT license. */ 'use strict'; /* deps:mocha */ var assert = require('assert'); var should = require('should'); var <%= _.namify(appname) %> = require('./'); describe('<%= _.namify(appname) %>', function () { it('should:', function () { <%= _.namify(appname) %>('a').should.eql({a: 'b'}); <%= _.namify(appname) %>('a').should.equal('a'); }); it('should throw an error:', function () { (function () { <%= _.namify(appname) %>(); }).should.throw('<%= _.namify(appname) %> expects valid arguments'); }); });