Debian Codegraph @

uni-global/test/index.test.js

raw
1 "use strict";
2
3 var assert = require("chai").assert
4 , uniGlobal = require("..");
5
6 var isObject = require("type/object/is");
7
8 describe("index.js", function () {
9 it("should return object for namespace", function () {
10 assert.equal(isObject(uniGlobal("foo")), true);
11 });
12 it("should return same object for same namspace", function () {
13 assert.equal(uniGlobal("foo"), uniGlobal("foo"));
14 });
15 it("should return different object for different namspace", function () {
16 assert.notEqual(uniGlobal("foo"), uniGlobal("bar"));
17 });
18 });