techfort/LokiJS

Incorrect implementation of unit test of `immutable`

Losses opened this issue · 0 comments

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

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:

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