-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GATE-7): Call 'ceiling' on DAI bridge instead of 'maxTotalBalance' (
#196)
- Loading branch information
Showing
19 changed files
with
605 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
import {isEth} from '../../utils'; | ||
import {isDai, isEth} from '../../utils'; | ||
|
||
describe('isEth', () => { | ||
it('should return true for eth symbol as string', () => { | ||
it('should return true for eth symbol', () => { | ||
expect(isEth('ETH')).toBeTruthy(); | ||
}); | ||
|
||
it('should return true for eth token as object', () => { | ||
expect(isEth({symbol: 'ETH'})).toBeTruthy(); | ||
it('should return false for non-eth symbol', () => { | ||
expect(isEth('DAI')).toBeFalsy(); | ||
}); | ||
}); | ||
|
||
it('should return false for non-eth symbol as string', () => { | ||
expect(isEth('DAI')).toBeFalsy(); | ||
describe('isDai', () => { | ||
it('should return true for eth symbol', () => { | ||
expect(isDai('DAI')).toBeTruthy(); | ||
}); | ||
|
||
it('should return false for non-eth token as object', () => { | ||
expect(isEth({symbol: 'DAI'})).toBeFalsy(); | ||
it('should return false for non-eth symbol', () => { | ||
expect(isDai('ETH')).toBeFalsy(); | ||
}); | ||
}); |
File renamed without changes.
Oops, something went wrong.