@@ -5,7 +5,7 @@ import { faker } from "https://deno.land/x/
[email protected] /mod.ts";
55test (
66 "get balance for nonexistent user" ,
77 async ( ctx : TestContext ) => {
8- const { balance } = await ctx . modules . currency . get_balance ( {
8+ const { balance } = await ctx . modules . currency . getBalance ( {
99 userId : "Not a real user" ,
1010 } ) ;
1111
@@ -132,7 +132,7 @@ test(
132132 } ) ;
133133
134134 const error = await assertRejects ( async ( ) => {
135- await ctx . modules . currency . set_balance ( { userId : user . id , balance : - 1 } ) ;
135+ await ctx . modules . currency . setBalance ( { userId : user . id , balance : - 1 } ) ;
136136 } , RuntimeError ) ;
137137 assertEquals ( error . code , "INVALID_AMOUNT" ) ;
138138 }
@@ -147,7 +147,7 @@ test(
147147 } ) ;
148148
149149 const error = await assertRejects ( async ( ) => {
150- await ctx . modules . currency . set_balance ( { userId : user . id , balance : NaN } ) ;
150+ await ctx . modules . currency . setBalance ( { userId : user . id , balance : NaN } ) ;
151151 } , RuntimeError ) ;
152152 assertEquals ( error . code , "INVALID_AMOUNT" ) ;
153153 }
@@ -163,7 +163,7 @@ test(
163163 } ) ;
164164
165165 const error = await assertRejects ( async ( ) => {
166- await ctx . modules . currency . set_balance ( { userId : user . id , balance : Infinity } ) ;
166+ await ctx . modules . currency . setBalance ( { userId : user . id , balance : Infinity } ) ;
167167 } , RuntimeError ) ;
168168 assertEquals ( error . code , "INVALID_AMOUNT" ) ;
169169 }
0 commit comments