UNPKG

bbop-graph

Version:

General purpose (mathematical) graph library in JavaScript.

36 lines (28 loc) 807 B
//// //// This is just a test to test the testing environment. //// // Prefer Chai assert. We're (somehow, it does not work for "assert") // passing in "should" from the gulp-defined globals. var assert = require('chai').assert; describe('our testing environment is sane', function(){ // State. var thingy = null; // Pre-run. before(function() { thingy = 1; }); // Trivially works two ways. it('works at all (thingy)', function(){ thingy.should.equal(1); assert.equal(thingy, 1); }); // Can I pull in things as expected from node_modules, etc.? it('I can see bbop-graph from my porch', function(){ var model = require('..'); assert.typeOf(model, 'object'); }); // Post-run. after(function(){ thingy = null; }); });