* fix: dissasociation without vega wallet (806) * fix: removed unused import * chore: removed redundant func prepend0xIfNeeded * Update apps/token/src/routes/staking/disassociate/disassociate-page.tsx Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com> * Update apps/token/src/routes/staking/disassociate/disassociate-page.tsx Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com> Co-authored-by: candida-d <62548908+candida-d@users.noreply.github.com>
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
import { prepend0x } from './prepend-0x';
|
|
|
|
describe('prepend0x', () => {
|
|
it.each([
|
|
{ input: 'ABC123', output: '0xABC123' },
|
|
{ input: '0XABC123', output: '0x0XABC123' },
|
|
{ input: '0xABC123', output: '0xABC123' },
|
|
])('prepends strings with 0x only if needed', ({ input, output }) => {
|
|
expect(prepend0x(input)).toBe(output);
|
|
});
|
|
});
|