silvrgit/lib/today/weather.spec.js

13 lines
368 B
JavaScript
Raw Permalink Normal View History

2017-03-22 15:48:36 +00:00
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();
});