UNPKG

noflo

Version:

Flow-Based Programming environment for JavaScript

19 lines (16 loc) 490 B
var browser, chai, noflo; if (typeof process !== 'undefined' && process.execPath && process.execPath.match(/node|iojs/)) { if (!chai) { chai = require('chai'); } noflo = require('../src/lib/NoFlo.coffee'); browser = false; } else { noflo = require('noflo'); browser = true; } describe('NoFlo interface', function() { return it('should be able to tell whether it is running on browser', function() { return chai.expect(noflo.isBrowser()).to.equal(browser); }); });