Skip to content

Commit 6c92d95

Browse files
test: update tests
1 parent fb32af7 commit 6c92d95

File tree

2 files changed

+22
-36
lines changed

2 files changed

+22
-36
lines changed

packages/apidom-ls/test/fixtures/expected/apidom-ls-async/sample-api-async-validation-2.0.0.json

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"character": 29
6969
}
7070
},
71-
"message": "should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null",
71+
"message": "should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null",
7272
"severity": 1,
7373
"code": 10001,
7474
"source": "apilint",
@@ -77,51 +77,37 @@
7777
{
7878
"message": "update to 'null'",
7979
"action": "updateValue",
80-
"functionParams": [
81-
"null"
82-
]
80+
"functionParams": ["null"]
8381
},
8482
{
8583
"message": "update to 'boolean'",
8684
"action": "updateValue",
87-
"functionParams": [
88-
"boolean"
89-
]
85+
"functionParams": ["boolean"]
9086
},
9187
{
9288
"message": "update to 'object'",
9389
"action": "updateValue",
94-
"functionParams": [
95-
"object"
96-
]
90+
"functionParams": ["object"]
9791
},
9892
{
9993
"message": "update to 'array'",
10094
"action": "updateValue",
101-
"functionParams": [
102-
"array"
103-
]
95+
"functionParams": ["array"]
10496
},
10597
{
10698
"message": "update to 'number'",
10799
"action": "updateValue",
108-
"functionParams": [
109-
"null"
110-
]
100+
"functionParams": ["null"]
111101
},
112102
{
113103
"message": "update to 'string'",
114104
"action": "updateValue",
115-
"functionParams": [
116-
"string"
117-
]
105+
"functionParams": ["string"]
118106
},
119107
{
120108
"message": "update to 'integer'",
121109
"action": "updateValue",
122-
"functionParams": [
123-
"integer"
124-
]
110+
"functionParams": ["integer"]
125111
}
126112
]
127113
}

packages/apidom-ls/test/validate.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ describe('apidom-ls-validate', function () {
289289
},
290290
},
291291
message:
292-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
292+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
293293
severity: 1,
294294
code: 10001,
295295
source: 'apilint',
@@ -409,7 +409,7 @@ describe('apidom-ls-validate', function () {
409409
},
410410
},
411411
message:
412-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
412+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
413413
severity: 1,
414414
code: 10001,
415415
source: 'apilint',
@@ -528,7 +528,7 @@ describe('apidom-ls-validate', function () {
528528
},
529529
},
530530
message:
531-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
531+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
532532
severity: 1,
533533
code: 10001,
534534
source: 'apilint',
@@ -861,7 +861,7 @@ describe('apidom-ls-validate', function () {
861861
},
862862
},
863863
message:
864-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
864+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
865865
severity: 1,
866866
code: 10001,
867867
source: 'apilint',
@@ -1066,7 +1066,7 @@ describe('apidom-ls-validate', function () {
10661066
},
10671067
},
10681068
message:
1069-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1069+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
10701070
severity: 1,
10711071
code: 10001,
10721072
source: 'apilint',
@@ -1204,7 +1204,7 @@ describe('apidom-ls-validate', function () {
12041204
},
12051205
},
12061206
message:
1207-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1207+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
12081208
severity: 1,
12091209
code: 10001,
12101210
source: 'apilint',
@@ -1469,7 +1469,7 @@ describe('apidom-ls-validate', function () {
14691469
},
14701470
},
14711471
message:
1472-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1472+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
14731473
severity: 1,
14741474
code: 10001,
14751475
source: 'apilint',
@@ -1636,7 +1636,7 @@ describe('apidom-ls-validate', function () {
16361636
},
16371637
},
16381638
message:
1639-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1639+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
16401640
severity: 1,
16411641
code: 10001,
16421642
source: 'apilint',
@@ -1717,7 +1717,7 @@ describe('apidom-ls-validate', function () {
17171717
},
17181718
},
17191719
message:
1720-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1720+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
17211721
severity: 1,
17221722
code: 10001,
17231723
source: 'apilint',
@@ -1798,7 +1798,7 @@ describe('apidom-ls-validate', function () {
17981798
},
17991799
},
18001800
message:
1801-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1801+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
18021802
severity: 1,
18031803
code: 10001,
18041804
source: 'apilint',
@@ -1879,7 +1879,7 @@ describe('apidom-ls-validate', function () {
18791879
},
18801880
},
18811881
message:
1882-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1882+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
18831883
severity: 1,
18841884
code: 10001,
18851885
source: 'apilint',
@@ -1960,7 +1960,7 @@ describe('apidom-ls-validate', function () {
19601960
},
19611961
},
19621962
message:
1963-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
1963+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
19641964
severity: 1,
19651965
code: 10001,
19661966
source: 'apilint',
@@ -2041,7 +2041,7 @@ describe('apidom-ls-validate', function () {
20412041
},
20422042
},
20432043
message:
2044-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
2044+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
20452045
severity: 1,
20462046
code: 10001,
20472047
source: 'apilint',
@@ -2122,7 +2122,7 @@ describe('apidom-ls-validate', function () {
21222122
},
21232123
},
21242124
message:
2125-
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer null',
2125+
'should be equal to one of the allowed values allowedValues: boolean, object, array, number, string, integer, null',
21262126
severity: 1,
21272127
code: 10001,
21282128
source: 'apilint',

0 commit comments

Comments
 (0)