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