diff --git a/index.js b/index.js index 977d6bb..98c6e40 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ var isDataView = require('is-data-view'); // node <= 0.10, < 0.11.4 has a nonconfigurable own property instead of a prototype getter /** @type {import('.')} */ -module.exports = $dataViewByteLength || function dataViewBuffer(x) { +module.exports = $dataViewByteLength || function byteLength(x) { if (!isDataView(x)) { throw new $TypeError('not a DataView'); } diff --git a/test/index.js b/test/index.js index 82044e1..00a5510 100644 --- a/test/index.js +++ b/test/index.js @@ -7,7 +7,7 @@ var inspect = require('object-inspect'); var dataViewByteLength = require('../'); -test('dataViewBuffer', function (t) { +test('dataViewByteLength', function (t) { forEach( // @ts-expect-error TS sucks at [].concat // eslint-disable-next-line no-extra-parens