Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
enjinabner committed Feb 3, 2025
1 parent b8d4720 commit ba7a36e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 1 addition & 4 deletions tests/Feature/GraphQL/Mutations/BatchTransferTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,7 @@ public function test_it_can_bypass_ownership(): void
'nonce' => fake()->numberBetween(),
], true);
$this->assertEquals(
[
'collectionId' => ['The collection id provided is not owned by you.'],
'recipients.0.simpleParams.amount' => ['The recipients.0.simpleParams.amount is invalid, the amount provided is bigger than the token account balance.'],
],
['recipients.0.simpleParams.amount' => ['The recipients.0.simpleParams.amount is invalid, the amount provided is bigger than the token account balance.']],
$response['error']
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,7 @@ public function test_it_can_bypass_ownership(): void
'nonce' => fake()->numberBetween(),
], true);
$this->assertEquals(
[
'params.amount' => ['The params.amount is invalid, the amount provided is bigger than the token account balance.'],
'collectionId' => ['The collection id provided is not owned by you.'],
],
['params.amount' => ['The params.amount is invalid, the amount provided is bigger than the token account balance.']],
$response['error']
);

Expand Down
5 changes: 1 addition & 4 deletions tests/Feature/GraphQL/Mutations/SimpleTransferTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,7 @@ public function test_it_can_bypass_ownership(): void
], true);

$this->assertEquals(
[
'params.amount' => ['The params.amount is invalid, the amount provided is bigger than the token account balance.'],
'collectionId' => ['The collection id provided is not owned by you.'],
],
['params.amount' => ['The params.amount is invalid, the amount provided is bigger than the token account balance.']],
$response['error']
);

Expand Down

0 comments on commit ba7a36e

Please sign in to comment.