Skip to content

Commit

Permalink
remove old test
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-sg authored and donnyquixotic committed Dec 14, 2023
1 parent 24b94f4 commit 4122b99
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions test/components/ContractTab/function-interface-utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
parseAddressString,
parseBooleanArrayString,
parseBooleanString,
parseBytesArrayString,
parseSignedIntArrayString,
parseSignedIntString,
parseStringArrayString,
Expand Down Expand Up @@ -503,30 +502,6 @@ describe('function-interface-utils', () => {
});
});

describe('parseBytesArrayString', () => {
it('should correctly parse a string representation of bytes', () => {
const bytesOne = 'fa';
const bytesTwo = 'B4';

// any length - valid
expect(parseBytesArrayString('[]')).toEqual([]);
expect(parseBytesArrayString(`[${bytesOne}]`)).toEqual([bytesOne]);
expect(parseBytesArrayString(`[${bytesOne}, ${bytesTwo}]`)).toEqual([bytesOne, bytesTwo]);

// any length - invalid
expect(parseBytesArrayString('[1]')).toEqual(undefined);


// fixed length - valid
expect(parseBytesArrayString(`[${bytesOne}]`, 1)).toEqual([bytesOne]);
expect(parseBytesArrayString(`[${bytesOne}, ${bytesTwo}]`, 2)).toEqual([bytesOne, bytesTwo]);

// fixed length - invalid
expect(parseBytesArrayString('[]', 2)).toEqual(undefined);
expect(parseBytesArrayString(`[${bytesOne}]`, 2)).toEqual(undefined);
});
});

describe('parseSignedIntArrayString', () => {
it('should correctly parse a string representation of signed int array', () => {
const intOne = 1;
Expand Down

0 comments on commit 4122b99

Please sign in to comment.