today/lib/trains.spec.js

13 lines
312 B
JavaScript
Raw Normal View History

2017-10-26 09:46:54 +00:00
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();
});