From b71ba4187ad026df14136d8a478166a02f10374a Mon Sep 17 00:00:00 2001 From: dtfiedler Date: Wed, 23 Oct 2024 17:45:28 -0500 Subject: [PATCH] chore(test): modify the price test to accept `Purchase-Type` --- tests/arns.test.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/arns.test.mjs b/tests/arns.test.mjs index 17f8466..ab92631 100644 --- a/tests/arns.test.mjs +++ b/tests/arns.test.mjs @@ -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, @@ -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 @@ -923,6 +924,7 @@ describe('ArNS', async () => { 'Current price should be positive', ); }); + // TODO: add several error scenarios });