Skip to content

Instantly share code, notes, and snippets.

@aherve
Last active March 10, 2016 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aherve/cd01e24ce1e107998f83 to your computer and use it in GitHub Desktop.
Save aherve/cd01e24ce1e107998f83 to your computer and use it in GitHub Desktop.
/* HELLO.JS */
// import some libraries
var express = require('express')
// Perhaps you'll want to code something more elaborated here.
module.exports = function count () {
return 1
}
console.log('hello is loaded !')
//--------------------------------------------------//
/* HELLO.SPEC.JS */
var should = require('should')
var hello = require('./hello')
describe ('count', function (done) {
it ('should return 1', function done () {
hello().should.eql(1)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment