Buckets:
ktongue/docker_container / .cache /opencode /node_modules /@fastify /merge-json-schemas /test /id.test.js
| const assert = require('node:assert/strict') | |
| const { test } = require('node:test') | |
| const { mergeSchemas } = require('../index') | |
| const { defaultResolver } = require('./utils') | |
| test('should skip $id keyword if they are equal', () => { | |
| const schema1 = { $id: 'foo', type: 'string' } | |
| const schema2 = { $id: 'foo', type: 'string' } | |
| const mergedSchema = mergeSchemas([schema1, schema2], { defaultResolver }) | |
| assert.deepStrictEqual(mergedSchema, { type: 'string' }) | |
| }) | |
| test('should skip $id keyword if they are different', () => { | |
| const schema1 = { $id: 'foo', type: 'string' } | |
| const schema2 = { $id: 'bar', type: 'string' } | |
| const mergedSchema = mergeSchemas([schema1, schema2], { defaultResolver }) | |
| assert.deepStrictEqual(mergedSchema, { type: 'string' }) | |
| }) | |
Xet Storage Details
- Size:
- 787 Bytes
- Xet hash:
- 7279b6987ac3d4a0283e656dd60ee4663b7f0de365e9447f4d935b220af62182
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.