UNPKG

s9s-objects

Version:

Global object container, used across projects

38 lines (28 loc) 1.14 kB
const assert = require('assert'); describe('JavascriptTypes', function () { /** * @type {{JavascriptTypes:{}}} */ const Objects = require(__dirname + '/../../objects'); it('Should exist and be an Object', function () { assert.strictEqual(typeof(Objects.JavascriptTypes), 'object'); }); it('Should contain TypeNumber', function () { assert.strictEqual(Objects.JavascriptTypes.TypeNumber, 'number'); }); it('Should contain TypeString', function () { assert.strictEqual(Objects.JavascriptTypes.TypeString, 'string'); }); it('Should contain TypeFunction', function () { assert.strictEqual(Objects.JavascriptTypes.TypeFunction, 'function'); }); it('Should contain TypeObject', function () { assert.strictEqual(Objects.JavascriptTypes.TypeObject, 'object'); }); it('Should contain TypeBoolean', function () { assert.strictEqual(Objects.JavascriptTypes.TypeBoolean, 'boolean'); }); it('Should contain Undefined', function () { assert.strictEqual(Objects.JavascriptTypes.Undefined, 'undefined'); }); });