diff --git a/tests/economy.ts b/tests/economy.ts index 1d04b51..00a49a4 100644 --- a/tests/economy.ts +++ b/tests/economy.ts @@ -1,6 +1,9 @@ import { failUnauthenticated, test, testOperation } from "./_utilities.js"; import { state } from "./_cache.js"; +const prominentListingId = "prod_c9d1cf9b-e3be-4bed-8386-49f0a8d32910"; +const prominentSellerUserId = "usr_3d10ca69-6586-40a3-aa1b-a0c9e38a0d20"; + test.before(failUnauthenticated); test.serial.failing( @@ -56,3 +59,40 @@ test(testOperation, "getLicenseGroup", { }, statusCode: 200 }); + +test.failing(testOperation, "getProductListing", { // Expect failure because products are either IDs or Products + parameters: { + productId: prominentListingId + }, + statusCode: 200 +}); + +test.failing(testOperation, "getProductListings", { + parameters: { + hydrate: true, + userId: prominentSellerUserId + }, + statusCode: 200 +}); + +test(testOperation, "getTokenBundles", { + statusCode: 200 +}); + +test(testOperation, "getTiliaStatus", { + statusCode: 200 +}); + +test(testOperation, "getTiliaTos", { + parameters: { + userId: state.get("current-user").id + }, + statusCode: 200 +}); + +test(testOperation, "getBalance", { + parameters: { + userId: state.get("current-user").id + }, + statusCode: 200 +});