UNPKG

neutrinoscript

Version:
19 lines (15 loc) 485 B
var path = require('path'); describe("Functions", function() { var data = ''; beforeEach(function(done) { neutrino.run(path.resolve('./examples/functions/test.neu'), function(result) { data = result; done(); }); }); it("should parse a set of functions", function(done) { data = data.split('\n'); expect(data).toEqual([ 'true', 'true', 'true', 'false', 'false', 'false', 'false true', 'false', '' ]); done(); }); });