Skip to content

Commit

Permalink
Merge pull request #19 from VinyarionHyarmendacil/economy-endpoints-0
Browse files Browse the repository at this point in the history
Economy related endpoints
  • Loading branch information
jellejurre authored Nov 19, 2024
2 parents a167138 + fd2bc4d commit a9a2fe5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/economy.ts
Original file line number Diff line number Diff line change
@@ -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(
Expand Down Expand Up @@ -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
});

0 comments on commit a9a2fe5

Please sign in to comment.