Skip to content

Instantly share code, notes, and snippets.

@bjouhier
Created December 29, 2011 18:19
Show Gist options
  • Save bjouhier/1535403 to your computer and use it in GitHub Desktop.
Save bjouhier/1535403 to your computer and use it in GitHub Desktop.
my first ace test
#!/usr/bin/env node-streamline
"use strict";
require('coffee-script')
var test = require("ace/src/lib/ace");
test(1, function(_) {
function Foo(x, _) {
process.nextTick(_);
this.x = x;
}
Foo.prototype.plus1 = function() {
return this.x + 1;
}
this.equal(new Foo(4, _).plus1(), 5, "constructor ok");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment