global.test.js 352 B

12345678910111213141516
  1. "use strict";
  2. var assert = require("@sinonjs/referee-sinon").assert;
  3. var globalObject = require("./global");
  4. describe("global", function() {
  5. before(function() {
  6. if (typeof global === "undefined") {
  7. this.skip();
  8. }
  9. });
  10. it("is same as global", function() {
  11. assert.same(globalObject, global);
  12. });
  13. });