13 lines
368 B
JavaScript
13 lines
368 B
JavaScript
const weather = require('./weather.js');
|
|
|
|
test('Test weather', () => {
|
|
return weather.newDoGetWeather()
|
|
.then((d) => {
|
|
expect(d.data.latitude).toEqual(55.95);
|
|
expect(d.data.longitude).toEqual(-4.566667);
|
|
}).catch((e) => {
|
|
console.error(e);
|
|
expect(e).toBeNull();
|
|
});
|
|
done();
|
|
}); |