13 lines
312 B
JavaScript
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();
|
||
|
});
|