@@ -16,19 +16,19 @@ test('mdast-util-definitions', function(t) {
1616 'should fail without node'
1717 )
1818
19- tree = remark ( ) . parse ( '[example]: http ://example.com "Example"' )
19+ tree = remark ( ) . parse ( '[example]: https ://example.com "Example"' )
2020 getDefinition = definitions ( tree )
2121
2222 t . deepEqual (
2323 getDefinition ( 'example' ) ,
2424 {
2525 type : 'definition' ,
2626 identifier : 'example' ,
27- url : 'http ://example.com' ,
27+ url : 'https ://example.com' ,
2828 title : 'Example' ,
2929 position : {
3030 start : { column : 1 , line : 1 , offset : 0 } ,
31- end : { column : 40 , line : 1 , offset : 39 } ,
31+ end : { column : 41 , line : 1 , offset : 40 } ,
3232 indent : [ ]
3333 }
3434 } ,
@@ -37,19 +37,19 @@ test('mdast-util-definitions', function(t) {
3737
3838 t . equal ( getDefinition ( 'foo' ) , null , 'should return null when not found' )
3939
40- tree = remark ( ) . parse ( '[__proto__]: http ://proto.com "Proto"' )
40+ tree = remark ( ) . parse ( '[__proto__]: https ://proto.com "Proto"' )
4141 getDefinition = definitions ( tree )
4242
4343 t . deepEqual (
4444 getDefinition ( '__proto__' ) ,
4545 {
4646 type : 'definition' ,
4747 identifier : '__proto__' ,
48- url : 'http ://proto.com' ,
48+ url : 'https ://proto.com' ,
4949 title : 'Proto' ,
5050 position : {
5151 start : { column : 1 , line : 1 , offset : 0 } ,
52- end : { column : 38 , line : 1 , offset : 37 } ,
52+ end : { column : 39 , line : 1 , offset : 38 } ,
5353 indent : [ ]
5454 }
5555 } ,
@@ -62,17 +62,19 @@ test('mdast-util-definitions', function(t) {
6262 'should work on weird identifiers when not found'
6363 )
6464
65- tree = remark ( ) . parse ( '[example]: http://one.com\n[example]: http://two.com' )
65+ tree = remark ( ) . parse (
66+ '[example]: https://one.com\n[example]: https://two.com'
67+ )
6668
6769 t . deepEqual (
6870 definitions ( tree ) ( 'example' ) . url ,
69- 'http ://two.com' ,
71+ 'https ://two.com' ,
7072 'should prefer the last of duplicate definitions by default'
7173 )
7274
7375 t . deepEqual (
7476 definitions ( tree , { commonmark : true } ) ( 'example' ) . url ,
75- 'http ://one.com' ,
77+ 'https ://one.com' ,
7678 'should prefer the first of duplicate definitions in commonmark mode'
7779 )
7880
0 commit comments