mirror of https://github.com/lukechilds/node.git
Browse Source
Add tests for untested branches and statements. Also convert some lines to const. PR-URL: https://github.com/nodejs/node/pull/8552 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>v7.x
4 changed files with 47 additions and 9 deletions
@ -0,0 +1,7 @@ |
|||
'use strict'; |
|||
|
|||
require('../common'); |
|||
const assert = require('assert'); |
|||
const Buffer = require('buffer').Buffer; |
|||
|
|||
assert.throws(() => new Buffer(42, 'utf8'), /first argument must be a string/); |
Loading…
Reference in new issue