Buckets:
ktongue/docker_container / .cache /opencode /node_modules /fast-json-stringify /test /sanitize7.test.js
| const { test } = require('node:test') | |
| const build = require('..') | |
| test('required property containing single quote, contains property', (t) => { | |
| t.plan(1) | |
| const stringify = build({ | |
| type: 'object', | |
| properties: { | |
| '\'': { type: 'string' } | |
| }, | |
| required: [ | |
| '\'' | |
| ] | |
| }) | |
| t.assert.throws(() => stringify({}), new Error('"\'" is required!')) | |
| }) | |
| test('required property containing double quote, contains property', (t) => { | |
| t.plan(1) | |
| const stringify = build({ | |
| type: 'object', | |
| properties: { | |
| '"': { type: 'string' } | |
| }, | |
| required: [ | |
| '"' | |
| ] | |
| }) | |
| t.assert.throws(() => stringify({}), new Error('""" is required!')) | |
| }) | |
| test('required property containing single quote, does not contain property', (t) => { | |
| t.plan(1) | |
| const stringify = build({ | |
| type: 'object', | |
| properties: { | |
| a: { type: 'string' } | |
| }, | |
| required: [ | |
| '\'' | |
| ] | |
| }) | |
| t.assert.throws(() => stringify({}), new Error('"\'" is required!')) | |
| }) | |
| test('required property containing double quote, does not contain property', (t) => { | |
| t.plan(1) | |
| const stringify = build({ | |
| type: 'object', | |
| properties: { | |
| a: { type: 'string' } | |
| }, | |
| required: [ | |
| '"' | |
| ] | |
| }) | |
| t.assert.throws(() => stringify({}), new Error('""" is required!')) | |
| }) | |
Xet Storage Details
- Size:
- 1.32 kB
- Xet hash:
- ee800d6f980bd966baf2fb5146f356385b441494a59d166463297b68ca909014
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.