@gameye/sdk
Version:
Node.js SDK for Gameye
19 lines • 767 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const test = require("blue-tape");
const empty_1 = require("./empty");
test("isEmpty", async (t) => {
t.equals(empty_1.isEmpty(""), true);
t.equals(empty_1.isEmpty(" "), false);
t.equals(empty_1.isEmpty("abc"), false);
t.equals(empty_1.isEmpty(0), false);
t.equals(empty_1.isEmpty(1), false);
t.equals(empty_1.isEmpty(true), false);
t.equals(empty_1.isEmpty(false), false);
t.equals(empty_1.isEmpty({}), true);
t.equals(empty_1.isEmpty({ a: null }), true);
t.equals(empty_1.isEmpty({ a: {} }), true);
t.equals(empty_1.isEmpty({ a: 1 }), false);
t.equals(empty_1.isEmpty({ a: { b: false } }), false);
});
//# sourceMappingURL=empty.spec.js.map