bb-api-platforma 0.1.168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,24 @@
1
+ import axios from 'axios';
2
+ import { BetBoosterOfficeApi } from './BetBoosterOfficeApi.js';
3
+ describe('BetBoosterOfficeApi', () => {
4
+ let api;
5
+ const axiosInstance = axios.create();
6
+ const baseUrl = 'https://office-test.restin.win';
7
+ beforeEach(() => {
8
+ api = new BetBoosterOfficeApi(axiosInstance, baseUrl, 'ru', 15000, true);
9
+ });
10
+ test('should set and get language correctly', () => {
11
+ // log('getLineSports', 'recive:', await api.getLineSports(120) );
12
+ const result = api.getLineSports(1440);
13
+ expect(api.lang).toEqual([
14
+ { ID: 5, Name: 'Футбол' },
15
+ { ID: 3, Name: 'Теннис 3-х сет' },
16
+ { ID: 16, Name: 'Гандбол' },
17
+ { ID: 2, Name: 'Бейсбол' },
18
+ { ID: 260, Name: 'Дартс' },
19
+ { ID: 311, Name: 'Киберспорт' },
20
+ { ID: 265, Name: 'Настольный теннис' },
21
+ { ID: 279, Name: 'Футзал' }
22
+ ]);
23
+ });
24
+ });