NodeGroup2 / GRAGS

An app for searching recipes and requesting Tesco shopping lists
https://grags.herokuapp.com/
2 stars 3 forks source link

Testing with t.equals #26

Closed sohilpandya closed 7 years ago

sohilpandya commented 7 years ago

I would love to know what the reasons are behind using t.equals instead of t.deepequals in here - https://github.com/NodeGroup2/GRAGS/blob/master/tests/tape-tests.js

tape docs

msachi commented 7 years ago

@sohilpandya As far as we understand it, t.equal is for comparing primitive values, and t.deepequal is for objects / arrays. We only compare numbers and strings...