Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : _tests.js
"use strict";

var assert = require("chai").assert;

module.exports = function (entries) {
	it("Should resolve entries array for an object", function () {
		assert.deepEqual(entries({ foo: "bar" }), [["foo", "bar"]]);
	});
	if (Object.defineProperty) {
		it("Should not resolve non-enumerable properties", function () {
			var obj = { visible: true };
			Object.defineProperty(obj, "hidden", { value: "elo" });
			assert.deepEqual(entries(obj), [["visible", true]]);
		});
	}
	it("Should resolve entries array for a primitive", function () {
		assert.deepEqual(entries("raz"), [
			["0", "r"], ["1", "a"], ["2", "z"]
		]);
	});
	it("Should throw on non-value", function () {
		assert["throws"](function () { entries(null); }, TypeError);
	});
};
© 2026 GrazzMean