UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

13 lines (11 loc) 269 B
"use strict"; module.exports = function (t, a) { a.deep(t({ foo: "bar" }), ["foo"], "Object"); a.deep(t("raz"), ["0", "1", "2"], "Primitive"); a.throws(function () { t(); }, TypeError, "Undefined"); a.throws(function () { t(null); }, TypeError, "Undefined"); };