Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.