Skip to content

Commit

Permalink
chore: uncomment dev only changes
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteflower committed Dec 11, 2024
1 parent 69efdb6 commit 46e7e8d
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions app/scripts/controllers/bridge-status/validators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,61 +210,61 @@ describe('validators', () => {
describe('bridgeStatusValidator', () => {
// @ts-expect-error - it.each is a function
it.each([
// {
// input: BridgeTxStatusResponses.STATUS_PENDING_VALID,
// expected: true,
// description: 'valid pending bridge status',
// },
// {
// input: BridgeTxStatusResponses.STATUS_PENDING_VALID_MISSING_FIELDS,
// expected: true,
// description: 'valid pending bridge status missing fields',
// },
// {
// input: BridgeTxStatusResponses.STATUS_PENDING_VALID_MISSING_FIELDS_2,
// expected: true,
// description: 'valid pending bridge status missing fields 2',
// },
// {
// input: BridgeTxStatusResponses.STATUS_PENDING_INVALID_MISSING_FIELDS,
// expected: false,
// description: 'pending bridge status with missing fields',
// },
// {
// input: BridgeTxStatusResponses.STATUS_COMPLETE_VALID,
// expected: true,
// description: 'valid complete bridge status',
// },
// {
// input: BridgeTxStatusResponses.STATUS_COMPLETE_INVALID_MISSING_FIELDS,
// expected: false,
// description: 'complete bridge status with missing fields',
// },
{
input: BridgeTxStatusResponses.STATUS_PENDING_VALID,
expected: true,
description: 'valid pending bridge status',
},
{
input: BridgeTxStatusResponses.STATUS_PENDING_VALID_MISSING_FIELDS,
expected: true,
description: 'valid pending bridge status missing fields',
},
{
input: BridgeTxStatusResponses.STATUS_PENDING_VALID_MISSING_FIELDS_2,
expected: true,
description: 'valid pending bridge status missing fields 2',
},
{
input: BridgeTxStatusResponses.STATUS_PENDING_INVALID_MISSING_FIELDS,
expected: false,
description: 'pending bridge status with missing fields',
},
{
input: BridgeTxStatusResponses.STATUS_COMPLETE_VALID,
expected: true,
description: 'valid complete bridge status',
},
{
input: BridgeTxStatusResponses.STATUS_COMPLETE_INVALID_MISSING_FIELDS,
expected: false,
description: 'complete bridge status with missing fields',
},
{
input: BridgeTxStatusResponses.STATUS_COMPLETE_VALID_MISSING_FIELDS_2,
expected: true,
description: 'complete bridge status with missing fields 2',
},
// {
// input: BridgeTxStatusResponses.STATUS_COMPLETE_VALID_MISSING_FIELDS,
// expected: true,
// description: 'complete bridge status with missing fields',
// },
// {
// input: undefined,
// expected: false,
// description: 'undefined',
// },
// {
// input: null,
// expected: false,
// description: 'null',
// },
// {
// input: {},
// expected: false,
// description: 'empty object',
// },
{
input: BridgeTxStatusResponses.STATUS_COMPLETE_VALID_MISSING_FIELDS,
expected: true,
description: 'complete bridge status with missing fields',
},
{
input: undefined,
expected: false,
description: 'undefined',
},
{
input: null,
expected: false,
description: 'null',
},
{
input: {},
expected: false,
description: 'empty object',
},
])(
'should return $expected for $description',
({ input, expected }: { input: unknown; expected: boolean }) => {
Expand Down

0 comments on commit 46e7e8d

Please sign in to comment.