Buckets:
ktongue/docker_container / .cache /opencode /node_modules /fast-json-stringify /test /fix-604.test.js
| const { test } = require('node:test') | |
| const fjs = require('..') | |
| test('fix-604', t => { | |
| const schema = { | |
| type: 'object', | |
| properties: { | |
| fullName: { type: 'string' }, | |
| phone: { type: 'number' } | |
| } | |
| } | |
| const input = { | |
| fullName: 'Jone', | |
| phone: 'phone' | |
| } | |
| const render = fjs(schema) | |
| t.assert.throws(() => { | |
| render(input) | |
| }, { message: 'The value "phone" cannot be converted to a number.' }) | |
| }) | |
Xet Storage Details
- Size:
- 451 Bytes
- Xet hash:
- 35ac1b4ffa68ee2495d841e753fbb04065df6f144fae1f1c0575e1b85e79ac41
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.