Skip to content

Commit

Permalink
feat(TypeScript): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed Jan 8, 2020
1 parent 382f512 commit bf585b3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as AT from './actionTypes'
import { assoc } from 'ramda'
import {
EMAIL_STEPS,
IdentityVerificationActionTypes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { getSmsVerified } from 'blockchain-wallet-v4/src/redux/settings/selector
import { getUserData, getUserTiers } from 'data/modules/profile/selectors'
import { Remote } from 'blockchain-wallet-v4/src'
import profileSagas from 'data/modules/profile/sagas'
import sagas, { logLocation, noCampaignDataError } from './sagas'
import sagas, { logLocation, noCampaignDataError } from './sagas.ts'

const api = {
fetchKycConfig: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import * as A from './actions'
import * as AT from './actionTypes'
import * as C from 'services/AlertService'
import * as S from './selectors'
import { actions, actionTypes, model, selectors } from 'data'
// from 'data' not working with jest
import { actions, actionTypes, model, selectors } from '../../../data'
import {
// AIRDROP_ERROR_MODAL,
BAD_CODE_ERROR,
EMAIL_STEPS,
FLOW_TYPES,
Expand All @@ -19,7 +19,7 @@ import {
import { call, delay, put, select, take } from 'redux-saga/effects'
import { computeSteps } from './services'
import { getStateNameFromAbbreviation } from 'services/LocalesService'
import { head, isEmpty, mapObjIndexed, prop, sort, toUpper } from 'ramda'
import { isEmpty, mapObjIndexed, prop, sort, toUpper } from 'ramda'
import { StateType, StepsType } from './types'
import { Types } from 'blockchain-wallet-v4'
import profileSagas from '../../modules/profile/sagas'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ import {
getSteps,
getSupportedCountries,
getVerificationStep
} from 'data/components/identityVerification/selectors'
} from 'data/components/identityVerification/selectors.ts'
import { KYC_STATES, USER_ACTIVATION_STATES } from 'data/modules/profile/model'
import { ModalHeader } from 'blockchain-info-components'
import { TermsText } from 'components/BuySell/Coinify/Create/AcceptTerms/template'
import IdentityVerification from './index'
import identityVerificationReducer from 'data/components/identityVerification/reducers'
import identityVerificationReducer from 'data/components/identityVerification/reducers.ts'
import identityVerificationSaga from 'data/components/identityVerification/sagaRegister'
import modalsReducer from 'data/modals/reducers'
import profileReducer from 'data/modules/profile/reducers'
Expand All @@ -59,7 +59,7 @@ jest.mock('blockchain-wallet-v4/src/redux/sagas')
jest.mock('blockchain-wallet-v4/src/redux/settings/selectors')
jest.mock('blockchain-wallet-v4/src/redux/kvStore/userCredentials/selectors')
jest.mock('blockchain-wallet-v4/src/redux/wallet/selectors')
jest.mock('data/components/identityVerification/selectors')
jest.mock('data/components/identityVerification/selectors.ts')
jest.mock('data/components/coinify/selectors')
jest.mock('blockchain-wallet-v4/src/redux/data/coinify/selectors')

Expand Down
4 changes: 1 addition & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3068,7 +3068,6 @@
dependencies:
"@types/yargs-parser" "*"

<<<<<<< HEAD
"@typescript-eslint/eslint-plugin@2.13.0":
version "2.13.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.13.0.tgz#57e933fe16a2fc66dbac059af0d6d85d921d748e"
Expand Down Expand Up @@ -3111,15 +3110,14 @@
lodash.unescape "4.0.1"
semver "^6.3.0"
tsutils "^3.17.1"
=======

"@veriff/incontext-sdk@0.2.1":
version "0.2.1"
resolved "https://registry.yarnpkg.com/@veriff/incontext-sdk/-/incontext-sdk-0.2.1.tgz#ed7dcf1810f859e0299d67dd928a637961894b77"
integrity sha512-rVB6iVQWLGzpCPhRbtG+4ZeXSGFcwpHqYHgvoiQGKVtIO48jl3Gc2uoRznh7cpmV8NHYBX2bRyfxStANUjNuBg==
dependencies:
body-scroll-lock "^2.6.4"
dom-focus-lock "^1.0.4"
>>>>>>> development

"@webassemblyjs/ast@1.7.10":
version "1.7.10"
Expand Down

0 comments on commit bf585b3

Please sign in to comment.