concordancejs / concordance

Compare, format, diff and serialize any JavaScript value

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support snapshots

novemberborn opened this issue · comments

It should be possible to serialize a value into a snapshot. The snapshot needs to include a formatted representation of the value, as well as an encoded representation that can be used to compare the snapshot against a new value.

Comparison logic needs to be tweaked: Arguments objects must not match Arrays, and ambiguous symbols must now match each other.

Generator functions must be formatted as regular functions, since they're not tagged as such in Node.js 4. They should also match regular functions.