0.4.0: battlepass levelNumber fix, UGC removed, regenerated API types, CI publish on tags
This commit is contained in:
@@ -185,7 +185,7 @@ describe('ScenarioService', () => {
|
||||
client.effects.onBattlePassLevel(onLevel);
|
||||
|
||||
const plan = makePlan({
|
||||
nodes: [makeNode('start', 'battlepass_level', { level: 3 })],
|
||||
nodes: [makeNode('start', 'battlepass_level', { levelNumber: 3 })],
|
||||
});
|
||||
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(
|
||||
new Response(JSON.stringify({ plans: [plan] }), { status: 200 }),
|
||||
|
||||
@@ -11,7 +11,7 @@ interface AdminWalletDetails {
|
||||
balance: number;
|
||||
}
|
||||
interface AdminInventoryItem {
|
||||
itemId: string;
|
||||
slug: string;
|
||||
amount: number;
|
||||
}
|
||||
interface AdminPlayerDetails {
|
||||
@@ -70,7 +70,7 @@ describe('e2e-prod: purchase (wallet/inventory/limits)', () => {
|
||||
const details = await api.get<AdminPlayerDetails>(
|
||||
`/game/v1/projects/${artifact.projectId}/players/${playerId}`,
|
||||
);
|
||||
const inv = details.inventory?.find((i) => i.itemId === artifact.item.id);
|
||||
const inv = details.inventory?.find((i) => i.slug === artifact.item.id);
|
||||
expect(Number(inv?.amount)).toBe(artifact.store.paidGrantAmount);
|
||||
|
||||
// 4. Idempotency: the same key twice charges once.
|
||||
|
||||
Reference in New Issue
Block a user