Moved old node defs to node-0.8.8 and separated tests for each version.

This commit is contained in:
Andrew Gaspar
2013-03-25 23:40:36 -05:00
parent 70fd40a1aa
commit 1f852afe5d
3 changed files with 1098 additions and 10 deletions
+28
View File
@@ -0,0 +1,28 @@
/// <reference path="node-0.8.8.d.ts" />
import assert = module("assert");
import fs = module("fs");
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
assert.deepEqual({ x: { y: 3 } }, { x: { y: 3 } }, "DEEP WENT DERP");
assert.equal(3, "3", "uses == comparator");
assert.notStrictEqual(2, "2", "uses === comparator");
assert.throws(() => { throw "a hammer at your face"; }, undefined, "DODGED IT");
assert.doesNotThrow(() => {
if (false) { throw "a hammer at your face"; }
}, undefined, "What the...*crunch*");
fs.writeFile("thebible.txt",
"Do unto others as you would have them do unto you.",
assert.ifError);
fs.writeFile("Harry Potter",
"\"You be wizzing, Harry,\" jived Dumbledore.",
"ascii",
assert.ifError);