@@ -1413,31 +1413,33 @@ describe('Runtime constraints', () => {
14131413 )
14141414 } , 30_000 )
14151415
1416- it ( 'should not be possible to create a DID with a service that is too long' , async ( ) => {
1416+ // TODO: these tests do not actually test anything; they just make an assertion about the value of a runtime const.
1417+ // This does not really make sense; and even if we wanted it, it would be better to just make a snapshot on the value.
1418+ it . skip ( 'should not be possible to create a DID with a service that is too long' , async ( ) => {
14171419 const serviceId = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
14181420 const limit = api . consts . did . maxServiceIdLength . toNumber ( )
14191421 expect ( serviceId . length ) . toBeGreaterThan ( limit )
14201422 } )
14211423
1422- it ( 'should not be possible to create a DID with a service that has too many types' , async ( ) => {
1424+ it . skip ( 'should not be possible to create a DID with a service that has too many types' , async ( ) => {
14231425 const types = [ 'type-1' , 'type-2' ]
14241426 const limit = api . consts . did . maxNumberOfTypesPerService . toNumber ( )
14251427 expect ( types . length ) . toBeGreaterThan ( limit )
14261428 } )
14271429
1428- it ( 'should not be possible to create a DID with a service that has too many URIs' , async ( ) => {
1430+ it . skip ( 'should not be possible to create a DID with a service that has too many URIs' , async ( ) => {
14291431 const uris = [ 'x:url-1' , 'x:url-2' , 'x:url-3' ]
14301432 const limit = api . consts . did . maxNumberOfUrlsPerService . toNumber ( )
14311433 expect ( uris . length ) . toBeGreaterThan ( limit )
14321434 } )
14331435
1434- it ( 'should not be possible to create a DID with a service that has a type that is too long' , async ( ) => {
1436+ it . skip ( 'should not be possible to create a DID with a service that has a type that is too long' , async ( ) => {
14351437 const type = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
14361438 const limit = api . consts . did . maxServiceTypeLength . toNumber ( )
14371439 expect ( type . length ) . toBeGreaterThan ( limit )
14381440 } )
14391441
1440- it ( 'should not be possible to create a DID with a service that has a URI that is too long' , async ( ) => {
1442+ it . skip ( 'should not be possible to create a DID with a service that has a URI that is too long' , async ( ) => {
14411443 const uri =
14421444 'a:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
14431445 const limit = api . consts . did . maxServiceUrlLength . toNumber ( )
0 commit comments