@@ -67,69 +67,5 @@ ${'aaa'.repeat(30)}`
6767 tt . end ( )
6868 } )
6969
70- t . test ( 'quoted lines' , ( tt ) => {
71- const v = new Validator ( )
72- const context = new Commit ( {
73- sha : 'e7c077c610afa371430180fbd447bfef60ebc5ea'
74- , author : {
75- name : 'Evan Lucas'
76- , email : 'evanlucas@me.com'
77- , date : '2016-04-12T19:42:23Z'
78- }
79- , message : `src: make foo mor foo-ey
80-
81- Here’s the original code:
82-
83- ${ 'aaa' . repeat ( 30 ) }
84-
85- That was the original code.
86- `
87- } , v )
88-
89- context . report = ( opts ) => {
90- tt . pass ( 'called report' )
91- tt . equal ( opts . id , 'line-length' , 'id' )
92- tt . equal ( opts . string , '' , 'string' )
93- tt . equal ( opts . level , 'pass' , 'level' )
94- }
95-
96- Rule . validate ( context , {
97- options : {
98- length : 72
99- }
100- } )
101- tt . end ( )
102- } )
103-
104- t . test ( 'URLs' , ( tt ) => {
105- const v = new Validator ( )
106- const context = new Commit ( {
107- sha : 'e7c077c610afa371430180fbd447bfef60ebc5ea'
108- , author : {
109- name : 'Evan Lucas'
110- , email : 'evanlucas@me.com'
111- , date : '2016-04-12T19:42:23Z'
112- }
113- , message : `src: make foo mor foo-ey
114-
115- https://${ 'very-' . repeat ( 80 ) } -long-url.org/
116- `
117- } , v )
118-
119- context . report = ( opts ) => {
120- tt . pass ( 'called report' )
121- tt . equal ( opts . id , 'line-length' , 'id' )
122- tt . equal ( opts . string , '' , 'string' )
123- tt . equal ( opts . level , 'pass' , 'level' )
124- }
125-
126- Rule . validate ( context , {
127- options : {
128- length : 72
129- }
130- } )
131- tt . end ( )
132- } )
133-
13470 t . end ( )
13571} )
0 commit comments