Skip to content

Commit

Permalink
Adding test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmorgan committed Aug 10, 2021
1 parent 4232265 commit 052292b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions test/core/KnownOriginDigitalAssetV3.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});

Expand Down Expand Up @@ -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'
);
});

Expand All @@ -702,7 +702,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {

await expectRevert(
this.token.getNextAvailablePrimarySaleToken.call(firstEditionTokenId),
'Primary market exhuasted'
'Primary market exhausted'
);
});

Expand Down Expand Up @@ -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'
);
});

Expand Down Expand Up @@ -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'
);
});

Expand All @@ -848,7 +848,7 @@ contract('KnownOriginDigitalAssetV3 test', function (accounts) {

await expectRevert(
this.token.getReverseAvailablePrimarySaleToken.call(firstEditionTokenId),
'Primary market exhuasted'
'Primary market exhausted'
);
});

Expand Down Expand Up @@ -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'
);
});

Expand Down
4 changes: 2 additions & 2 deletions test/marketplace/KODAV3Marketplace.sales.buy.now.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
});

Expand Down Expand Up @@ -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'
);
});

Expand Down
4 changes: 2 additions & 2 deletions test/marketplace/KODAV3Marketplace.sales.stepped.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ contract('KODAV3Marketplace', function (accounts) {
from: collectorD,
value: token4Price
}),
'Primary market exhuasted'
'Primary market exhausted'
);

});
Expand Down Expand Up @@ -531,7 +531,7 @@ contract('KODAV3Marketplace', function (accounts) {
from: contract,
value: token4Price
}),
'Primary market exhuasted'
'Primary market exhausted'
);

});
Expand Down

0 comments on commit 052292b

Please sign in to comment.