Skip to content

Instantly share code, notes, and snippets.

@sdepold
Created June 10, 2010 12:43
Show Gist options
  • Save sdepold/432931 to your computer and use it in GitHub Desktop.
Save sdepold/432931 to your computer and use it in GitHub Desktop.
var kiwi = require("kiwi")
kiwi.require("NoSpec")
new NoSpec()
.define("myLibrary", __dirname + "/lib/myLib", "myLib")
// => var myLibrary = require(__dirname + "/lib/myLib").myLib
.load(__dirname + "/specFile")
.load(__dirname + "/anotherSpecFile")
.load(__dirname + "/specFolder")
// use this to load all files in a folder and its subfolders
.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment