today/lib/trains.spec.js
Martin Donnelly c0d3b15694 init
2017-10-26 10:46:54 +01:00

13 lines
312 B
JavaScript

const trains = require('./trains.js');
test('Test trains', () => {
return trains.updateTrains()
.then((d) => {
console.log('Trains: ', d);
expect(d).toBeDefined();
})
.catch((e)=> {
expect(e).toBeNull();
});
done();
});