(res)
| 74 | |
| 75 | it('callback should be settable in the constructor', () => { |
| 76 | let cb = function (res) {}; |
| 77 | let opts = { callback: cb }; |
| 78 | var net = new brain.NeuralNetwork(opts); |
| 79 | assert.ok(typeof net.trainOpts.callback === 'function', `callback => ${net.trainOpts.callback} but should be ${opts.callback}`); |
no outgoing calls
no test coverage detected