@@ -4,44 +4,72 @@ const testParseFixture = require('./testParseFixture');
44const fixtures = path . join ( __dirname , 'fixtures' , 'components' ) ;
55
66describe ( 'components' , ( ) => {
7- it ( "'Path Item Object' parameter references" , ( ) => {
8- const file = path . join ( fixtures , 'path-item-object-parameters' ) ;
9- return testParseFixture ( file ) ;
10- } ) ;
7+ describe ( 'Path Item Object' , ( ) => {
8+ it ( 'handles parameter references' , ( ) => {
9+ const file = path . join ( fixtures , 'path-item-object-parameters' ) ;
10+ return testParseFixture ( file ) ;
11+ } ) ;
1112
12- it ( "'Path Item Object' parameter referencing unsupported parameter" , ( ) => {
13- const file = path . join ( fixtures , 'path-item-object-parameters-unsupported-parameter ' ) ;
14- return testParseFixture ( file ) ;
15- } ) ;
13+ it ( 'handles multiple references to same parameter' , ( ) => {
14+ const file = path . join ( fixtures , 'path-item-object-parameters-multiple ' ) ;
15+ return testParseFixture ( file ) ;
16+ } ) ;
1617
17- it ( "'Media Type Object' schema references" , ( ) => {
18- const file = path . join ( fixtures , 'media-type-object-schema' ) ;
19- return testParseFixture ( file ) ;
18+ it ( 'handles parameter referencing unsupported parameter' , ( ) => {
19+ const file = path . join ( fixtures , 'path-item-object-parameters-unsupported-parameter' ) ;
20+ return testParseFixture ( file ) ;
21+ } ) ;
2022 } ) ;
2123
22- it ( "'Media Type Object' examples references" , ( ) => {
23- const file = path . join ( fixtures , 'media-type-object-examples' ) ;
24- return testParseFixture ( file ) ;
25- } ) ;
24+ describe ( 'Media Type Object' , ( ) => {
25+ it ( 'handles schema references' , ( ) => {
26+ const file = path . join ( fixtures , 'media-type-object-schema' ) ;
27+ return testParseFixture ( file ) ;
28+ } ) ;
2629
27- it ( "'Responses Object' response references" , ( ) => {
28- const file = path . join ( fixtures , 'responses- object-response ' ) ;
29- return testParseFixture ( file ) ;
30- } ) ;
30+ it ( 'handles multiple references to same schema' , ( ) => {
31+ const file = path . join ( fixtures , 'media-type- object-schema-multiple ' ) ;
32+ return testParseFixture ( file ) ;
33+ } ) ;
3134
32- it ( "'Responses Object' response references with schema" , ( ) => {
33- const file = path . join ( fixtures , 'responses-object-response-with-schema' ) ;
34- return testParseFixture ( file ) ;
35+ it ( 'handles examples references' , ( ) => {
36+ const file = path . join ( fixtures , 'media-type-object-examples' ) ;
37+ return testParseFixture ( file ) ;
38+ } ) ;
3539 } ) ;
3640
37- it ( "'Responses Object' respomnse references with headers" , ( ) => {
38- const file = path . join ( fixtures , 'responses-object-response-with-headers' ) ;
39- return testParseFixture ( file ) ;
41+ describe ( 'Responses Object' , ( ) => {
42+ it ( 'handles response references' , ( ) => {
43+ const file = path . join ( fixtures , 'responses-object-response' ) ;
44+ return testParseFixture ( file ) ;
45+ } ) ;
46+
47+ it ( 'handles multiple references to same response' , ( ) => {
48+ const file = path . join ( fixtures , 'responses-object-response-multiple' ) ;
49+ return testParseFixture ( file ) ;
50+ } ) ;
51+
52+ it ( 'handles response references with schema' , ( ) => {
53+ const file = path . join ( fixtures , 'responses-object-response-with-schema' ) ;
54+ return testParseFixture ( file ) ;
55+ } ) ;
56+
57+ it ( 'handles responses references with headers' , ( ) => {
58+ const file = path . join ( fixtures , 'responses-object-response-with-headers' ) ;
59+ return testParseFixture ( file ) ;
60+ } ) ;
4061 } ) ;
4162
42- it ( "'Response Object' headers references" , ( ) => {
43- const file = path . join ( fixtures , 'response-object-headers' ) ;
44- return testParseFixture ( file ) ;
63+ describe ( 'Response Object' , ( ) => {
64+ it ( 'handles headers references' , ( ) => {
65+ const file = path . join ( fixtures , 'response-object-headers' ) ;
66+ return testParseFixture ( file ) ;
67+ } ) ;
68+
69+ it ( 'handles multiple references to same header' , ( ) => {
70+ const file = path . join ( fixtures , 'response-object-headers-multiple' ) ;
71+ return testParseFixture ( file ) ;
72+ } ) ;
4573 } ) ;
4674
4775 it ( "'Schema Object' circular references" , ( ) => {
0 commit comments