]> git.r.bdr.sh - rbdr/dotfiles/blob
9c9064c78864456feaa0ffdf6e5f23f14362af2a
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function (t, a) {
4 var x = {}, y = {}, z;
5 z = t(x);
6 a.not(z, x, "Returns different object");
7 a.deep(z, {}, "Empty on empty");
8
9 x = { foo: 'bar', a: 0, b: false, c: '', d: '0', e: null, bar: y,
10 elo: undefined };
11 z = t(x);
12 a.deep(z, { foo: 'bar', a: 0, b: false, c: '', d: '0', bar: y },
13 "Cleared null values");
14 };