UNPKG

metar-cli

Version:

A command line tool to get METARs based on ICAO codes

9 lines (7 loc) 242 B
const fetchMETAR = require('../lib/fetchavweather').fetchMETAR; test('Get METAR for Craig field in Jacksonville, Fl', (done) => { fetchMETAR('KCRG').then(metar => { expect(metar.Station).toBe('KCRG'); done(); }); });