@@ -7,14 +7,14 @@ describe('transformTypeToReferenceLink', () => {
77 it ( 'should transform a JavaScript primitive type into a Markdown link' , ( ) => {
88 strictEqual (
99 transformTypeToReferenceLink ( 'string' ) ,
10- '[`<string>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#string_type)'
10+ '[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type)'
1111 ) ;
1212 } ) ;
1313
1414 it ( 'should transform a JavaScript global type into a Markdown link' , ( ) => {
1515 strictEqual (
1616 transformTypeToReferenceLink ( 'Array' ) ,
17- '[`<Array>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Array)'
17+ '[`<Array>`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)'
1818 ) ;
1919 } ) ;
2020
@@ -30,35 +30,35 @@ describe('transformTypeToReferenceLink', () => {
3030 it ( 'should transform a basic Generic type into a Markdown link' , ( ) => {
3131 strictEqual (
3232 transformTypeToReferenceLink ( '{Promise<string>}' ) ,
33- '[`<Promise>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/en-US /docs/Web/JavaScript/Data_structures#string_type)>'
33+ '[`<Promise>`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type)>'
3434 ) ;
3535 } ) ;
3636
3737 it ( 'should partially transform a Generic type if only one part is known' , ( ) => {
3838 strictEqual (
3939 transformTypeToReferenceLink ( '{CustomType<string>}' , { } ) ,
40- '`<CustomType>`<[`<string>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#string_type)>'
40+ '`<CustomType>`<[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type)>'
4141 ) ;
4242 } ) ;
4343
4444 it ( 'should transform a Generic type with an inner union like {Promise<string|boolean>}' , ( ) => {
4545 strictEqual (
4646 transformTypeToReferenceLink ( '{Promise<string|boolean>}' , { } ) ,
47- '[`<Promise>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#string_type) | [`<boolean>`](https://developer.mozilla.org/en-US /docs/Web/JavaScript/Data_structures#boolean_type)>'
47+ '[`<Promise>`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type) | [`<boolean>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#boolean_type)>'
4848 ) ;
4949 } ) ;
5050
5151 it ( 'should transform multi-parameter generics like {Map<string, number>}' , ( ) => {
5252 strictEqual (
5353 transformTypeToReferenceLink ( '{Map<string, number>}' , { } ) ,
54- '[`<Map>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Map)<[`<string>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#string_type), [`<number>`](https://developer.mozilla.org/en-US /docs/Web/JavaScript/Data_structures#number_type)>'
54+ '[`<Map>`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)<[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type), [`<number>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#number_type)>'
5555 ) ;
5656 } ) ;
5757
5858 it ( 'should handle outer unions with generics like {Promise<string|number> | boolean}' , ( ) => {
5959 strictEqual (
6060 transformTypeToReferenceLink ( '{Promise<string|number> | boolean}' , { } ) ,
61- '[`<Promise>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#string_type) | [`<number>`](https://developer.mozilla.org/en-US/ docs/Web/JavaScript/Data_structures#number_type)> | [`<boolean>`](https://developer.mozilla.org/en-US /docs/Web/JavaScript/Data_structures#boolean_type)'
61+ '[`<Promise>`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[`<string>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#string_type) | [`<number>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#number_type)> | [`<boolean>`](https://developer.mozilla.org/docs/Web/JavaScript/Data_structures#boolean_type)'
6262 ) ;
6363 } ) ;
6464} ) ;
0 commit comments