Incorrect implementation of unit test of `immutable`
Losses opened this issue · 0 comments
Losses commented
LokiJS/spec/generic/immutable.spec.js
Line 267 in 25b9a33
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:
LokiJS/spec/generic/immutable.spec.js
Line 272 in 25b9a33