time-to-botec/squiggle/node_modules/jstat/test/umd/commonjs-test.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

28 lines
845 B
JavaScript

var vows = require('vows');
var assert = require('assert');
var suite = vows.describe('jStat.commonjs');
suite.addBatch({
'jStat': {
'topic': function() {
return require('./../../dist/jstat.js');
},
'should be defined': function(jStat) {
assert.equal(typeof jStat, 'function');
// Check some random functions
assert.equal(typeof jStat.rows, 'function');
assert.equal(typeof jStat.min, 'function');
assert.equal(typeof jStat.betafn, 'function');
assert.equal(typeof jStat.beta.pdf, 'function');
assert.equal(typeof jStat.add, 'function');
assert.equal(typeof jStat.zscore, 'function');
},
'should export jStat object under the "jStat" property for compatibility reasons': function(jStat) {
assert.equal(jStat.jStat, jStat);
},
}
});
suite.export(module);