@vorlefan/google-news
Version:
Crawler for the newest news from google newspaper RSS
18 lines (16 loc) • 417 B
JavaScript
;
var _index = require("../index");
describe('Simple Search', () => {
const news = new _index.GoogleNews(['Kingkiller Chronicles'], {
route: route => {
route.inject('example', 'main/__tests__');
},
routeName: 'example',
language: 'en-US',
localization: 'US'
});
test('search', async () => {
await news.run();
expect(news.news().length === 1).toBe(true);
});
});