From a061e7b457f53bdc39716dacdddbe558ee790745 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Mar 2024 10:34:51 -0800 Subject: [PATCH] [patch] fix function name --- index.js | 2 +- test/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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