Skip to content

Instantly share code, notes, and snippets.

@thejohnfreeman
Created April 15, 2012 21:41
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 thejohnfreeman/2394947 to your computer and use it in GitHub Desktop.
Save thejohnfreeman/2394947 to your computer and use it in GitHub Desktop.
Mocha vs Node
#!/usr/bin/env mocha
/* Change "mocha" to "node" in the first line, and it works. */
var requirejs = require("requirejs");
var one = requirejs("./one");
console.log(one);
define(function () {
console.log("loading one");
return "one";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment