forked from MrRefactoring/jira.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.test.ts
81 lines (65 loc) · 1.96 KB
/
index.test.ts
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
import { test } from 'vitest';
import {
AgileClient,
AgileModels,
AgileParameters,
ServiceDeskClient,
ServiceDeskModels,
ServiceDeskParameters,
Version2Client,
Version2Models,
Version2Parameters,
Version3Client,
Version3Models,
Version3Parameters,
type Callback,
type Config,
} from '@jirajs';
test('Callback should be defined', ({ expect }) => {
const callback: Callback<string> = () => {};
expect(!!callback).toBeTruthy();
});
test('Config should be defined', ({ expect }) => {
const config: Config = {
host: 'http://localhost',
};
expect(!!config).toBeTruthy();
expect(!!config.host).toBeTruthy();
expect(typeof config.host).toBe('string');
});
test('Agile client should be defined', ({ expect }) => {
expect(!!AgileClient).toBeTruthy();
});
test('Agile models should be defined', ({ expect }) => {
expect(!!AgileModels).toBeTruthy();
});
test('Agile parameters should be defined', ({ expect }) => {
expect(!!AgileParameters).toBeTruthy();
});
test('Version2 client should be defined', ({ expect }) => {
expect(!!Version2Client).toBeTruthy();
});
test('Version2 models should be defined', ({ expect }) => {
expect(!!Version2Models).toBeTruthy();
});
test('Version2 parameters should be defined', ({ expect }) => {
expect(!!Version2Parameters).toBeTruthy();
});
test('Version3 client should be defined', ({ expect }) => {
expect(!!Version3Client).toBeTruthy();
});
test('Version3 models should be defined', ({ expect }) => {
expect(!!Version3Models).toBeTruthy();
});
test('Version3 parameters should be defined', ({ expect }) => {
expect(!!Version3Parameters).toBeTruthy();
});
test('ServiceDesk client should be defined', ({ expect }) => {
expect(!!ServiceDeskClient).toBeTruthy();
});
test('ServiceDesk models should be defined', ({ expect }) => {
expect(!!ServiceDeskModels).toBeTruthy();
});
test('ServiceDesk parameters should be defined', ({ expect }) => {
expect(!!ServiceDeskParameters).toBeTruthy();
});