mirror of
https://github.com/tiennm99/FBcount.git
synced 2026-10-03 04:35:16 +00:00
Init
This commit is contained in:
1 parent
d10a3b793b
commit
e81094b0d2
4280 files changed
+484929
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
var getPropertyNames = require("../../object/get-property-names")
|
||||
, isPlainObject = require("../../object/is-plain-object");
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var x = t();
|
||||
a(isPlainObject(x), true, "Plain object");
|
||||
a.deep(getPropertyNames(x), [], "No properties");
|
||||
x.foo = "bar";
|
||||
a.deep(getPropertyNames(x), ["foo"], "Extensible");
|
||||
|
||||
a.deep(t("raz", "dwa", 3), { raz: true, dwa: true, 3: true }, "Arguments handling");
|
||||
};
|
||||
Reference in new issue
Block a user