silvrgit/lib/today/trains.spec.js
2017-03-22 15:48:36 +00: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();
});