UNPKG

@schukai/monster

Version:

Monster is a simple library for creating fast, robust and lightweight websites.

31 lines (22 loc) 817 B
import {getGlobal, getGlobalObject, getGlobalFunction} from "../../../source/types/global.mjs"; import {expect} from "chai" describe('Global', function () { describe('getGlobal', function () { it('should return global object', function () { let t = typeof getGlobal(); expect(t).to.be.equal('object') }); }); describe('getGlobalFunction', function () { it('should return global function', function () { let t = typeof getGlobalFunction('parseInt'); expect(t).to.be.equal('function') }); }); describe('getGlobalObject', function () { it('should return global object', function () { let t = typeof getGlobalObject('JSON'); expect(t).to.be.equal('object') }); }); });