UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

30 lines (29 loc) 631 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const testCases = [ { comment: 'Succeeds when target has correct type', doc: {}, patch: [ { op: 'type', path: '', value: 'object', }, ], expected: {}, }, { comment: 'Fails when type does not match', doc: {}, patch: [ { op: 'type', path: '', value: 'number', }, ], error: 'TEST', }, ]; exports.default = testCases;