]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/vim-mode/node_modules/grim/node_modules/emissary/node_modules/es6-weak-map/node_modules/es5-ext/test/object/compact.js
9c9064c78864456feaa0ffdf6e5f23f14362af2a
[rbdr/dotfiles] / atom / packages / vim-mode / node_modules / grim / node_modules / emissary / node_modules / es6-weak-map / node_modules / es5-ext / test / object / compact.js
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 };