]> git.r.bdr.sh - rbdr/dotfiles/blob
839857eab3dd85c6b1a8cff19019ee5c8cc59d79
[rbdr/dotfiles] /
1 'use strict';
2
3 var getPropertyNames = require('../../object/get-property-names')
4 , isPlainObject = require('../../object/is-plain-object');
5
6 module.exports = function (t, a) {
7 var x = t();
8 a(isPlainObject(x), true, "Plain object");
9 a.deep(getPropertyNames(x), [], "No properties");
10 x.foo = 'bar';
11 a.deep(getPropertyNames(x), ['foo'], "Extensible");
12
13 a.deep(t('raz', 'dwa', 3), { raz: true, dwa: true, 3: true },
14 "Arguments handling");
15 };