deno.land / x / mongoose@6.7.5 / test / helpers / common.test.js

common.test.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict';
const assert = require('assert');const modifiedPaths = require('../../lib/helpers/common').modifiedPaths;
describe('modifiedPaths, bad update value which has circular reference field', () => { it('update value can be null', function() { modifiedPaths(null, 'path', null); });
it('values with obvious error on circular reference', function() { const objA = {}; objA.a = objA;
assert.throws(() => modifiedPaths(objA, 'path', null), /circular reference/); });});
mongoose

Version Info

Tagged at
a year ago