deno.land / x / google_play_scraper@v10.0.0 / test / lib.categories.js

lib.categories.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { assert } from 'chai';import gplay from '../index.js';import * as R from 'ramda';
describe('Categories method', () => { it('should fetch valid list of categories', () => { return gplay.categories().then(categories => { assert.isArray(categories); assert.isTrue(categories.length > 0); }); });
it('should have all categories from constant list of categories', () => { return gplay.categories().then(categories => { const categoriesConst = Object.keys(gplay.category); assert.deepEqual( R.difference(categories, categoriesConst), [], 'Google Play has categories that are not in "category" constant' ); }); });});
google_play_scraper

Version Info

Tagged at
9 months ago