ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Node Assert Snippets

by jaymorrow ST2/ST3

Sublime Text snippets for NodeJs assertions

Details

Installs

  • Total 3K
  • Win 2K
  • OS X 610
  • Linux 497
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 2 0 3 1 0 2 2 3 4 5 4 0 0 2 3 0 6 0 5 3 4 1 0 2 7 3 5 2 6 3 2 5 4 4 3 2 4 1 2 2 4 4 4 2 0 2
OS X 0 1 1 2 1 1 1 0 1 0 1 1 1 1 1 0 1 1 0 1 1 0 0 0 0 2 1 1 1 1 0 0 2 0 1 1 0 1 1 2 1 2 0 0 1 2
Linux 1 0 1 0 0 0 0 0 1 1 0 0 1 0 1 1 0 0 2 1 1 1 0 0 0 1 1 1 1 1 2 2 0 1 0 1 0 0 2 1 1 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

NodeJS Assertion Snippets

Install via Package Control.

afa - assert.fail

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

ass - assert

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

aok - assert.ok

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

aeq - assert.equal

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

ane - assert.notEqual

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

ade - assert.deepEqual

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

ande - assert.notDeepEqual

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

ase - assert.strictEqual

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

anse - assert.notStrictEqual

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

adse - assert.deepStrictEqual

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

andse - assert.notDeepStrictEqual

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

ath - assert.throws

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

adnt - assert.doesNotThrow

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

aif - assert.ifError

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