Closed 1hitsong closed 4 months ago
Can we add some unit tests for the new functions? Just to be sure they won't blow up when we start using them everywhere
Can we add some unit tests for the new functions? Just to be sure they won't blow up when we start using them everywhere
Tests for chainIsValid()
and isAllValid()
added.
Changes
Creates a new helper function to easily check if deeply buried properties are valid.
Backports changes from #1691 to fix unit tests in bug branch.
Backports
isAllValid()
from master to use in bug fixesExamples
isChainValid(m.global, "session.user.settings.lastRunVersion")
returns trueisChainValid(m.global, "session.nouser.settings.lastRunVersion")
returns false