Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit f28b9c0

Browse files
committed
fix(currency): test casing
1 parent 035a138 commit f28b9c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/currency/tests/errors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { faker } from "https://deno.land/x/[email protected]/mod.ts";
55
test (
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

Comments
 (0)