Skip to content

Commit

Permalink
fix: fix typos in tests and comments (#15028)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuoer86 committed Oct 24, 2023
1 parent 1fec243 commit 54bf597
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
--toastWidth: 339px;
/*
We need to makes the surroundings dissapear in order
We need to makes the surroundings disappear in order
to fully customize the toast with our own component
*/
--toastBackground: transparent;
Expand Down
4 changes: 2 additions & 2 deletions packages/bridge-ui-v2/src/libs/token/checkOwnership.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ describe('checkOwnership', () => {
});

describe('General tests', () => {
it('should return an emtpy array if tokenType is null', async () => {
it('should return an empty array if tokenType is null', async () => {
// When
const result = await checkOwnership(TOKEN_ADDRESS, null, TOKEN_IDS, OWNER, CHAIN_ID);

// Then
expect(result).toEqual([]);
});

it('should return an emtpy array if tokenIds array is empty', async () => {
it('should return an empty array if tokenIds array is empty', async () => {
// When
const result = await checkOwnership(TOKEN_ADDRESS, TokenType.ERC721, [], OWNER, CHAIN_ID);

Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/signer/subscriber.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('subscribeToSigner', () => {
// Next we test functions are called with the right arguments:
expect(tokenService.getTokens).toHaveBeenCalledWith(address);

// We pass what's returned from the previos tokenService.getTokens
// We pass what's returned from the previous tokenService.getTokens
// and that is the tokens array
expect(userTokens.set).toHaveBeenCalledWith(tokens);

Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test/L1/TaikoL1.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ contract TaikoL1Test is TaikoL1TestBase {
// uint96 minAmount = conf.ethDepositMinAmount;
uint96 maxAmount = conf.ethDepositMaxAmount;

// We need 8 depostis otherwise we are not processing them !
// We need 8 deposits otherwise we are not processing them !
giveEthAndTko(Alice, 1e6 ether, maxAmount + 1 ether);
giveEthAndTko(Bob, 0, maxAmount + 1 ether);
giveEthAndTko(Carol, 0, maxAmount + 1 ether);
Expand Down

1 comment on commit 54bf597

@vercel
Copy link

@vercel vercel bot commented on 54bf597 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

bridge-ui-v2-internal – ./packages/bridge-ui-v2

bridge-ui-v2-internal-git-main-taikoxyz.vercel.app
bridge-ui-v2-internal.vercel.app
bridge-ui-v2-internal-taikoxyz.vercel.app

Please sign in to comment.