@@ -10,8 +10,8 @@ describe('NIP-01', () => {
1010 describe ( 'validate filter schema' , ( ) => {
1111 beforeEach ( ( ) => {
1212 filter = {
13- ids : [ 'aa ' , 'bb ' , 'cc ' ] ,
14- authors : [ 'aa ' , 'bb ' , 'cc ' ] ,
13+ ids : [ 'aaaa ' , 'bbbb ' , 'cccc ' ] ,
14+ authors : [ 'aaaa ' , 'bbbb ' , 'cccc ' ] ,
1515 kinds : [ 0 , 1 , 2 , 3 ] ,
1616 since : 1000 ,
1717 until : 1000 ,
@@ -32,7 +32,7 @@ describe('NIP-01', () => {
3232 const cases = {
3333 ids : [
3434 { message : 'must be an array' , transform : assocPath ( [ 'ids' ] , null ) } ,
35- { message : 'must contain less than or equal to 1000 items' , transform : assocPath ( [ 'ids' ] , range ( 0 , 1001 ) . map ( ( ) => 'f ' ) ) } ,
35+ { message : 'must contain less than or equal to 1000 items' , transform : assocPath ( [ 'ids' ] , range ( 0 , 1001 ) . map ( ( ) => 'ffff ' ) ) } ,
3636 ] ,
3737 prefixOrId : [
3838 { message : 'length must be less than or equal to 64 characters long' , transform : assocPath ( [ 'ids' , 0 ] , 'f' . repeat ( 65 ) ) } ,
@@ -41,7 +41,7 @@ describe('NIP-01', () => {
4141 ] ,
4242 authors : [
4343 { message : 'must be an array' , transform : assocPath ( [ 'authors' ] , null ) } ,
44- { message : 'must contain less than or equal to 1000 items' , transform : assocPath ( [ 'authors' ] , range ( 0 , 1001 ) . map ( ( ) => 'f ' ) ) } ,
44+ { message : 'must contain less than or equal to 1000 items' , transform : assocPath ( [ 'authors' ] , range ( 0 , 1001 ) . map ( ( ) => 'ffff ' ) ) } ,
4545 ] ,
4646 prefixOrAuthor : [
4747 { message : 'length must be less than or equal to 64 characters long' , transform : assocPath ( [ 'authors' , 0 ] , 'f' . repeat ( 65 ) ) } ,
@@ -73,7 +73,7 @@ describe('NIP-01', () => {
7373 { message : 'must be a number' , transform : assocPath ( [ 'limit' ] , null ) } ,
7474 { message : 'must be greater than or equal to 0' , transform : assocPath ( [ 'limit' ] , - 1 ) } ,
7575 { message : 'must be a multiple of 1' , transform : assocPath ( [ 'limit' ] , Math . PI ) } ,
76- { message : 'must be less than or equal to 10000 ' , transform : assocPath ( [ 'limit' ] , 10001 ) } ,
76+ { message : 'must be less than or equal to 5000 ' , transform : assocPath ( [ 'limit' ] , 5001 ) } ,
7777 ] ,
7878 '#e' : [
7979 { message : 'must be an array' , transform : assocPath ( [ '#e' ] , null ) } ,
0 commit comments