@@ -404,19 +404,19 @@ test('ratio bad inputs', t => {
404
404
message : '100.5 not a safe integer' ,
405
405
} ) ;
406
406
t . throws ( ( ) => makeRatioFromAmounts ( 3n , moe ( 30n ) ) , {
407
- message : `The brand "[3n ]" doesn't look like a brand.` ,
407
+ message : `The brand "[undefined ]" doesn't look like a brand.` ,
408
408
} ) ;
409
409
t . throws ( ( ) => floorMultiplyBy ( 37 , makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) ) , {
410
- message : `The brand 37 doesn't look like a brand.` ,
410
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
411
411
} ) ;
412
412
t . throws ( ( ) => ceilMultiplyBy ( 37 , makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) ) , {
413
- message : `The brand 37 doesn't look like a brand.` ,
413
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
414
414
} ) ;
415
415
t . throws ( ( ) => floorDivideBy ( makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) , 37 ) , {
416
- message : `The brand {"numerator":{"brand":"[Alleged: moe brand]","value":"[3n]"},"denominator":{"brand":"[Seen]","value":"[5n]"}} doesn't look like a brand.` ,
416
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
417
417
} ) ;
418
418
t . throws ( ( ) => ceilDivideBy ( makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) , 37 ) , {
419
- message : `The brand {"numerator":{"brand":"[Alleged: moe brand]","value":"[3n]"},"denominator":{"brand":"[Seen]","value":"[5n]"}} doesn't look like a brand.` ,
419
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
420
420
} ) ;
421
421
t . throws ( ( ) => makeRatio ( 3n , brand , 0n ) , {
422
422
message : / N o i n f i n i t e r a t i o s ! D e n o m i n a t o r w a s 0 / ,
@@ -436,10 +436,10 @@ test('ratio bad inputs deprecated', t => {
436
436
const moe = value => AmountMath . make ( value , brand ) ;
437
437
// @ts -ignore invalid arguments for testing
438
438
t . throws ( ( ) => multiplyBy ( 37 , makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) ) , {
439
- message : `The brand 37 doesn't look like a brand.` ,
439
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
440
440
} ) ;
441
441
t . throws ( ( ) => divideBy ( makeRatioFromAmounts ( moe ( 3n ) , moe ( 5n ) ) , 37 ) , {
442
- message : `The brand {"numerator":{"brand":"[Alleged: moe brand]","value":"[3n]"},"denominator":{"brand":"[Seen]","value":"[5n]"}} doesn't look like a brand.` ,
442
+ message : `The brand "[undefined]" doesn't look like a brand.` ,
443
443
} ) ;
444
444
} ) ;
445
445
0 commit comments