rvagg/node-errno

tests failing in 0.1.4

pravi opened this issue · 0 comments

pravi commented
 nodejs test.js 
TAP version 13
# sanity checks
ok 1 errno.all not found
ok 2 errno.errno not found
ok 3 errno.code not found
not ok 4 found 60, expected 59
  ---
    operator: equal
    expected: 59
    actual:   60
    at: Test.<anonymous> (/home/pravi/forge/debian/git/pkg-javascript/node-errno/test.js:11:5)
  ...
not ok 5 errno -1 not first element
  ---
    operator: equal
    expected: |-
      { code: 'ENOENT', description: 'no such file or directory', errno: -2 }
    actual: |-
      { code: 'UNKNOWN', description: 'unknown error', errno: -1 }
    at: Test.<anonymous> (/home/pravi/forge/debian/git/pkg-javascript/node-errno/test.js:12:5)
  ...
not ok 6 code UNKNOWN not first element
  ---
    operator: equal
    expected: |-
      { code: 'ENOENT', description: 'no such file or directory', errno: -2 }
    actual: |-
      { code: 'UNKNOWN', description: 'unknown error', errno: -1 }
    at: Test.<anonymous> (/home/pravi/forge/debian/git/pkg-javascript/node-errno/test.js:14:5)
  ...
not ok 7 errno 1 not third element
  ---
    operator: equal
    expected: |-
      { code: 'OK', description: 'success', errno: 0 }
    actual: |-
      { code: 'EOF', description: 'end of file', errno: 1 }
    at: Test.<anonymous> (/home/pravi/forge/debian/git/pkg-javascript/node-errno/test.js:16:5)
  ...
not ok 8 code EOF not third element
  ---
    operator: equal
    expected: |-
      { code: 'OK', description: 'success', errno: 0 }
    actual: |-
      { code: 'EOF', description: 'end of file', errno: 1 }
    at: Test.<anonymous> (/home/pravi/forge/debian/git/pkg-javascript/node-errno/test.js:18:5)
  ...
# custom errors
ok 9 correct custom name
ok 10 correct custom type
ok 11 correct custom message
ok 12 no cause

1..12
# tests 12
# pass  7
# fail  5