Skip to content

Commit

Permalink
chore(test): modify the price test to accept Purchase-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Oct 23, 2024
1 parent 232823d commit b71ba41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/arns.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ describe('ArNS', async () => {
Tags: [
{ name: 'Action', value: 'Auction-Prices' },
{ name: 'Name', value: 'test-name' },
{ name: 'Purchase-Type', value: 'lease' },
],
},
releaseNameResult.Memory,
Expand All @@ -876,7 +877,7 @@ describe('ArNS', async () => {
const auctionPricesData = JSON.parse(auctionPrices.Messages?.[0]?.Data);

// expectations
const expectedStartPrice = 125000000000;
const expectedStartPrice = 30000000000; // price for a 1 year lease
const expectedFloorPrice = Math.floor(expectedStartPrice / 50);

// validate the response structure
Expand Down Expand Up @@ -923,6 +924,7 @@ describe('ArNS', async () => {
'Current price should be positive',
);
});


// TODO: add several error scenarios
});

0 comments on commit b71ba41

Please sign in to comment.