Skip to content

Commit 1a41cb4

Browse files
committed
Fixed #45; added Travis for Node.js 6
1 parent f759072 commit 1a41cb4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: node_js
22
node_js:
33
- node
4+
- 7
5+
- 6
46
after_success:
57
- npm run-script test-travis

test/errors/read.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
/*eslint-disable no-undef*/
2+
assert.throws(
3+
() => r.value({type: new t.OctetsType, buffer: bufferFrom([0, 0, 1])}),
4+
'Buffer is not long enough'
5+
)
26
assert.throws(
37
() => r.type(bufferFrom([t.TupleType._value, t.ByteType._value])),
48
'Buffer is not long enough'

0 commit comments

Comments
 (0)