LokiJS icon indicating copy to clipboard operation
LokiJS copied to clipboard

Incorrect implementation of unit test of `immutable`

Open Losses opened this issue 3 years ago • 0 comments

https://github.com/techfort/LokiJS/blob/25b9a33d57509717d43b4da06d92064f2b7a6c95/spec/generic/immutable.spec.js#L267

The code (probably) should be:

expect(isFrozen(docs[0]) && isFrozen(docs[1])).toBe(true)

but not:

expect(isFrozen(docs[0] && isFrozen(docs[1]))).toBe(true)

Same issue:

https://github.com/techfort/LokiJS/blob/25b9a33d57509717d43b4da06d92064f2b7a6c95/spec/generic/immutable.spec.js#L272

Losses avatar Dec 03 '22 14:12 Losses