"use strict";

var _isBooleanValue = require("../isBooleanValue");

describe("isBooleanValue", function () {
  test("isBooleanValue(val) => true || isBooleanValue(!val) => false", function () {
    [null, undefined, "string", [1, "2", true], [1], [0], function () {}, Symbol("Sym"), BigInt(90), new ArrayBuffer(8), Object].forEach(function (val) {
      expect((0, _isBooleanValue.isBooleanValue)(val)).toEqual(false);
    });
    [true, false, "true", "false", "True", "False", 0, 1, "0", "1"].forEach(function (val) {
      expect((0, _isBooleanValue.isBooleanValue)(val)).toEqual(true);
    });
  });
});