UNPKG

global_noscoping

Version:

noscopes the global variables you define

21 lines (18 loc) 871 B
//I totally did not make this from some tutorial i found online var chai = require('chai'); var expect = chai.expect; var NOSCOPE_MY_LIFE = require('../global_noscoping'); describe('SHOW_ME_THE_GLOBALS', function() { it('GLOBAL_NOSCOPING should return "TRUE" if we got some GLOBALS TO NOSCOPE', function() { a = "scoping it up"; a = NOSCOPE_MY_LIFE.JUSTDOITINGLOBALSCOPE(); expect(a).to.equal(true.toString().toUpperCase()); }) }) describe('NOSCOPE_THOSE_GLOBALS', function(){ it('GLOBAL_NOSCOPING should return "FALSE" if we have successfully NOSCOPED our GLOBALS.', function(){ a = "scoping it up"; var I_HAD_TO_USE_VAR_SO_THIS_DIDNT_FUCK_UP = NOSCOPE_MY_LIFE.NOSCOPEMYVARIABLES() expect(I_HAD_TO_USE_VAR_SO_THIS_DIDNT_FUCK_UP).to.equal(false.toString().toUpperCase().toLowerCase().toUpperCase()) }) })