From e509fc1462d49c45baaace9c074856fdbea47929 Mon Sep 17 00:00:00 2001 From: undefined Date: Wed, 20 May 2020 22:55:03 +0700 Subject: [PATCH] feat #1210: fix review comments --- .../__test__/aside.test.tsx | 23 ++++++------------- .../app-detail/__test__/app-content.test.tsx | 3 ++- .../app-detail/app-content/app-content.tsx | 6 +++-- .../pages/developer-app-detail/aside.tsx | 6 ++--- .../boolean-to-yes-no-string.test.ts | 9 ++++++++ .../utils/__tests__/boolean-to-yes-no.test.ts | 9 -------- .../src/utils/boolean-to-yes-no-string.tsx | 7 ++++++ .../src/utils/boolean-to-yes-no.tsx | 7 ------ .../marketplace/src/utils/route-dispatcher.ts | 4 ++-- 9 files changed, 34 insertions(+), 40 deletions(-) create mode 100644 packages/marketplace/src/utils/__tests__/boolean-to-yes-no-string.test.ts delete mode 100644 packages/marketplace/src/utils/__tests__/boolean-to-yes-no.test.ts create mode 100644 packages/marketplace/src/utils/boolean-to-yes-no-string.tsx delete mode 100644 packages/marketplace/src/utils/boolean-to-yes-no.tsx diff --git a/packages/marketplace/src/components/pages/developer-app-detail/__test__/aside.test.tsx b/packages/marketplace/src/components/pages/developer-app-detail/__test__/aside.test.tsx index 8e24244ba9..db263e7de6 100644 --- a/packages/marketplace/src/components/pages/developer-app-detail/__test__/aside.test.tsx +++ b/packages/marketplace/src/components/pages/developer-app-detail/__test__/aside.test.tsx @@ -2,7 +2,6 @@ import React from 'react' import { DeveloperAppDetailState } from '@/reducers/developer' import { Aside, ManageApp, renderListedStatus } from '../aside' import { shallow } from 'enzyme' -import toJson from 'enzyme-to-json' import { integrationTypesStub } from '@/sagas/__stubs__/integration-types' import { appDetailDataStub } from '@/sagas/__stubs__/app-detail' import { DesktopIntegrationTypeModel } from '@reapit/foundations-ts-definitions' @@ -15,13 +14,11 @@ jest.mock('react-router', () => ({ describe('Aside', () => { test('Aside - should match snapshot', () => { expect( - toJson( - shallow( -