Skip to content

Commit

Permalink
[Tests] add coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 2, 2024
1 parent 0a880c0 commit d27357d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
"root": true,

"extends": "@ljharb",

"globals": {
"DataView": false,
},
}
3 changes: 3 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ test('byteLength', function (t) {
var ab0 = new ArrayBuffer(0);
st.equal(byteLength(ab0), 0, 'works on an ArrayBuffer of length 0: ' + inspect(ab0));

var dv = new DataView(ab32);
st.equal(byteLength(dv), NaN, 'a DataView returns NaN');

st.end();
});

Expand Down

0 comments on commit d27357d

Please sign in to comment.