Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
tdd-assert-deep-equal.sublime-snippet
tdd-assert-deep-strict-equal.sublime-snippet
tdd-assert-does-not-throw.sublime-snippet
tdd-assert-equal.sublime-snippet
tdd-assert-fail.sublime-snippet
tdd-assert-if-error.sublime-snippet
tdd-assert-not-deep-equal.sublime-snippet
tdd-assert-not-deep-strict-equal.sublime-snippet
tdd-assert-not-equal.sublime-snippet
tdd-assert-not-strict-equal.sublime-snippet
tdd-assert-ok.sublime-snippet
tdd-assert-strict-equal.sublime-snippet
tdd-assert-throws.sublime-snippet
tdd-assert.sublime-snippet

README.md

Node.js JavaScript Snippets

Prefix tn.*

[tn.dequal] deepEqual

assert.deepEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.dsequal] deepStrictEqual

assert.deepStrictEqual(${1:actual}, ${2:expected} ${3:, message});

[tn.dnthrow] doesNotThrow

assert.doesNotThrow(${1:block} ${2:, error} ${3:, message});

[tn.equal] equal

assert.equal(${1:actual}, ${2:expected} ${3:, message});

[tn.fail] fail

assert.fail(${1:actual}, ${2:expected}, ${3:message}, ${4:operator});

[tn.iferror] ifError

assert.ifError(${1:value});

[tn.ndequal] notDeepEqual

assert.notDeepEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.ndsequal] notDeepStrictEqual

assert.notDeepStrictEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.nequal] notEqual

assert.notEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.nsequal] notStrictEqual

assert.notStrictEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.ok] ok

assert.ok(${1:value}${2:, message});

[tn.sequal] strictEqual

assert.strictEqual(${1:actual}, ${1:expected} ${2:, message});

[tn.throws] throws

assert.throws(${1:block}, ${1:error} ${2:, message});

[tn.a] Assert

assert(${1:true}${2:, message});
You can’t perform that action at this time.