File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ async function processFile(file, t) {
162162
163163 // social validation
164164 if ( data . social ) {
165- t . true ( Object . keys ( data . social ) <= 5 , `${ file } : Maximum of 5 social links allowed` ) ;
165+ t . false ( Object . keys ( data . social ) <= 5 , `${ file } : Maximum of 5 social links allowed` ) ;
166166 for ( const key of Object . keys ( data . social ) ) {
167167 t . true ( typeof data . social [ key ] === "string" , `${ file } : social.${ key } should be a string` ) ;
168168 t . true ( data . social [ key ] . startsWith ( "http" ) , `${ file } : social.${ key } should be a valid URL` ) ;
@@ -171,7 +171,7 @@ async function processFile(file, t) {
171171
172172 //my_top_resources validation
173173 if ( data . my_top_resources ) {
174- t . true ( Object . keys ( data . my_top_resources ) . length <= 5 , `${ file } : Maximum of 5 my_top_resources allowed` ) ;
174+ t . false ( Object . keys ( data . my_top_resources ) . length <= 3 , `${ file } : Maximum of 3 my_top_resources allowed` ) ;
175175 for ( const key of Object . keys ( data . my_top_resources ) ) {
176176 t . true ( typeof data . my_top_resources [ key ] === "string" , `${ file } : my_top_resources.${ key } should be a string` ) ;
177177 t . true ( data . my_top_resources [ key ] . startsWith ( "http" ) , `${ file } : my_top_resources.${ key } should be a valid URL` ) ;
You can’t perform that action at this time.
0 commit comments