-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.test.js
107 lines (88 loc) · 3.02 KB
/
index.test.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
//const Api = require ("api");
const AudListByBuilding = require("./AudListByBuilding/index.js");
const AudListByKafedra = require("./AudListByKafedra/index.js");
const BuildingList = require("./BuildingList/index.js");
const DeptsByFacultyP = require("./DeptsByFacultyP/index.js");
const Faculty = require("./Faculty/index.js");
const FacultyList = require("./FacultyList/index.js");
const GroupByFacultyList = require("./GroupByFacultyList/index.js");
const PrepodListByDeptP = require("./PrepodListByDeptP/index.js");
const SearchGroups = require("./SearchGroups/index.js");
const SearchPrepod = require("./SearchPrepod/index.js");
const Shedule = require("./Shedule/index.js");
const Shedule2 = require("./Shedule2/index.js");
const Shedule2A = require("./Shedule2A/index.js");
const Shedule2P = require("./Shedule2P/index.js");
const SheduleA = require("./SheduleA/index.js");
const SheduleP = require("./SheduleP/index.js");
test('fetch AudListByBuilding', async () => {
const AuditorysByBuild = await AudListByBuilding;
expect(AuditorysByBuild).toBeTruthy();
});
test('fetch AudListByKafedra', async () => {
const AuditorsByKafedra = await AudListByKafedra;
expect(AuditorsByKafedra).toBeTruthy();
});
test('fetch BuildingList', async () => {
const Buildings = await BuildingList;
expect(Buildings).toBeTruthy();
});
test('fetch DeptsByFacultyP', async () => {
const DepByFacultP = await DeptsByFacultyP;
expect(DepByFacultP).toBeTruthy();
});
test('fetch Facultys', async () => {
const Facultys = await Faculty;
expect(Facultys).toBeTruthy();
});
test('fetch FacultyList', async () => {
const FacList = await FacultyList;
expect(FacList).toBeTruthy();
});
test('fetch GroupByFacultyList', async () => {
const GrFacList = await GroupByFacultyList;
expect(GrFacList).toBeTruthy();
});
test('fetch PrepodListByDeptP', async () => {
const PreListDepartments = await PrepodListByDeptP;
expect(PreListDepartments).toBeTruthy();
});
test('fetch SearchGroups', async () => {
const SrchGroups = await SearchGroups;
expect(SrchGroups).toBeTruthy();
});
test('fetch SearchPrepod', async () => {
const SrchPrepod = await SearchPrepod;
expect(SrchPrepod).toBeTruthy();
});
test('fetch Shedule', async () => {
const Sh1 = await Shedule;
expect(Sh1).toBeTruthy();
});
test('fetch Shedule2', async () => {
const Sh2 = await Shedule2;
expect(Sh2).toBeTruthy();
});
test('fetch Shedule2A', async () => {
const Sh2A = await Shedule2A;
expect(Sh2A).toBeTruthy();
});
test('fetch Shedule2P', async () => {
const Sh2P = await Shedule2P;
expect(Sh2P).toBeTruthy();
});
test('fetch SheduleA', async () => {
const ShA = await SheduleA;
expect(ShA).toBeTruthy();
});
test('fetch SheduleP', async () => {
const ShP = await SheduleP;
expect(ShP).toBeTruthy();
});
/*Faculty
.fetchOne({id})
.then(()=> {// handle success
})
.catch(()=> {// handle failise
})
*/