Skip to content

Commit

Permalink
Fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn committed Sep 4, 2024
1 parent 0935410 commit ea13801
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ import { cachedValues } from './fixtures/cached.js'

const schemaNames = /** @type {SchemaName[]} */ (Object.keys(dataTypeIds))

/** @import { SchemaName } from '../dist/types.js' */

const schemaNames = /** @type {SchemaName[]} */ (Object.keys(dataTypeIds))

test('Bad docs throw when encoding', () => {
for (const { text, doc } of badDocs) {
assert.throws(() => {
Expand Down Expand Up @@ -321,14 +317,6 @@ function isSchemaName(value) {
return schemaNames.includes(/** @type {any} */ (value))
}

/**
* @param {unknown} value
* @returns {value is SchemaName}
*/
function isSchemaName(value) {
return schemaNames.includes(/** @type {any} */ (value))
}

/**
* Remove undefined properties (deeply) from an object, by round-tripping to
* JSON. Also handles Buffers via JSON.parse reviver
Expand Down

0 comments on commit ea13801

Please sign in to comment.