diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/es5-ext/test/object/serialize.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/es5-ext/test/object/serialize.js')
-rw-r--r-- | node_modules/es5-ext/test/object/serialize.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/node_modules/es5-ext/test/object/serialize.js b/node_modules/es5-ext/test/object/serialize.js deleted file mode 100644 index f0ca800cc..000000000 --- a/node_modules/es5-ext/test/object/serialize.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var fn = function (raz, dwa) { - return raz + dwa; - }; - a(t(), "undefined", "Undefined"); - a(t(null), "null", "Null"); - a(t(null), "null", "Null"); - a(t("raz"), "\"raz\"", "String"); - a(t("raz\"ddwa\ntrzy"), "\"raz\\\"ddwa\\ntrzy\"", "String with escape"); - a(t(false), "false", "Booelean"); - a(t(fn), String(fn), "Function"); - - a(t(/raz-dwa/g), "/raz-dwa/g", "RegExp"); - a(t(new Date(1234567)), "new Date(1234567)", "Date"); - a(t([]), "[]", "Empty array"); - a( - t([undefined, false, null, "raz\"ddwa\ntrzy", fn, /raz/g, new Date(1234567), ["foo"]]), - "[undefined,false,null,\"raz\\\"ddwa\\ntrzy\"," + - String(fn) + - ",/raz/g,new Date(1234567),[\"foo\"]]", - "Rich Array" - ); - a(t({}), "{}", "Empty object"); - a( - t({ - raz: undefined, - dwa: false, - trzy: null, - cztery: "raz\"ddwa\ntrzy", - piec: fn, - szesc: /raz/g, - siedem: new Date(1234567), - osiem: ["foo", 32], - dziewiec: { foo: "bar", dwa: 343 } - }), - "{\"raz\":undefined,\"dwa\":false,\"trzy\":null,\"cztery\":\"raz\\\"ddwa\\ntrzy\"," + - "\"piec\":" + - String(fn) + - ",\"szesc\":/raz/g,\"siedem\":new Date(1234567),\"osiem\":[\"foo\",32]," + - "\"dziewiec\":{\"foo\":\"bar\",\"dwa\":343}}", - "Rich object" - ); -}; |