From 052292b4c8b80e770bc4953ebad3df0e49174785 Mon Sep 17 00:00:00 2001 From: James Morgan Date: Tue, 10 Aug 2021 14:22:28 +0100 Subject: [PATCH] Adding test fixes --- test/core/KnownOriginDigitalAssetV3.test.js | 16 ++++++++-------- .../KODAV3Marketplace.sales.buy.now.test.js | 4 ++-- .../KODAV3Marketplace.sales.stepped.test.js | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/test/core/KnownOriginDigitalAssetV3.test.js b/test/core/KnownOriginDigitalAssetV3.test.js index 77db7f1d..0c17a7d4 100644 --- a/test/core/KnownOriginDigitalAssetV3.test.js +++ b/test/core/KnownOriginDigitalAssetV3.test.js @@ -645,7 +645,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { // exceeds tokens and reverts await expectRevert( this.token.getNextAvailablePrimarySaleToken.call(firstEditionTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -678,7 +678,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { it('reverts if no edition ID found', async () => { await expectRevert( this.token.getNextAvailablePrimarySaleToken.call(nonExistentTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -702,7 +702,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { await expectRevert( this.token.getNextAvailablePrimarySaleToken.call(firstEditionTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -790,7 +790,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { // exceeds tokens and reverts await expectRevert( this.token.getReverseAvailablePrimarySaleToken.call(firstEditionTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -819,14 +819,14 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { // exceeds tokens and reverts await expectRevert( this.token.getReverseAvailablePrimarySaleToken.call(firstEditionTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); it('reverts if no edition ID found', async () => { await expectRevert( this.token.getReverseAvailablePrimarySaleToken.call(nonExistentTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -848,7 +848,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { await expectRevert( this.token.getReverseAvailablePrimarySaleToken.call(firstEditionTokenId), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -1360,7 +1360,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) { it('Reverts when edition does not exist', async () => { await expectRevert( this.token.updateURIIfNoSaleMade(secondEditionTokenId, 'random', {from: owner}), - 'Edition does not exist' + 'Only creator or proxy' ); }); diff --git a/test/marketplace/KODAV3Marketplace.sales.buy.now.test.js b/test/marketplace/KODAV3Marketplace.sales.buy.now.test.js index 7529b112..df1bc743 100644 --- a/test/marketplace/KODAV3Marketplace.sales.buy.now.test.js +++ b/test/marketplace/KODAV3Marketplace.sales.buy.now.test.js @@ -365,7 +365,7 @@ contract('KODAV3Marketplace', function (accounts) { await expectRevert.unspecified( this.marketplace.buyEditionToken(firstEditionTokenId, {from: collectorA, value: _0_1_ETH}), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -445,7 +445,7 @@ contract('KODAV3Marketplace', function (accounts) { await expectRevert.unspecified( this.marketplace.buyEditionTokenFor(firstEditionTokenId, collectorA, {from: collectorA, value: _0_1_ETH}), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); diff --git a/test/marketplace/KODAV3Marketplace.sales.stepped.test.js b/test/marketplace/KODAV3Marketplace.sales.stepped.test.js index 7a1ceb96..121f01db 100644 --- a/test/marketplace/KODAV3Marketplace.sales.stepped.test.js +++ b/test/marketplace/KODAV3Marketplace.sales.stepped.test.js @@ -264,7 +264,7 @@ contract('KODAV3Marketplace', function (accounts) { from: collectorD, value: token4Price }), - 'Primary market exhuasted' + 'Primary market exhausted' ); }); @@ -531,7 +531,7 @@ contract('KODAV3Marketplace', function (accounts) { from: contract, value: token4Price }), - 'Primary market exhuasted' + 'Primary market exhausted' ); });