json-joy
Version:
Collection of libraries for building collaborative editing apps.
42 lines (41 loc) • 931 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const testCases = [
{
comment: 'At root, succeeds when value is lower than requested',
doc: 123,
patch: [
{
op: 'less',
path: '',
value: 124,
},
],
expected: 123,
},
{
comment: 'At root, fails when value is not lower than requested',
doc: 123,
patch: [
{
op: 'less',
path: '',
value: 123,
},
],
error: 'TEST',
},
{
comment: 'At root, fails when value is not lower than requested - 2',
doc: 123,
patch: [
{
op: 'less',
path: '',
value: 1,
},
],
error: 'TEST',
},
];
exports.default = testCases;
;