@vorlefan/google-news
Version:
Crawler for the newest news from google newspaper RSS
18 lines (16 loc) • 445 B
JavaScript
;
var _index = require("../index");
describe('Multiple Search', () => {
const news = new _index.GoogleNews(['One Piece', 'The Legend of Dragoon ps1'], {
route: route => {
route.inject('example', 'main/__tests__');
},
routeName: 'example',
language: 'en-US',
localization: 'US'
});
test('multiple_search', async () => {
await news.run();
expect(news.news().length === 2).toBe(true);
});
});