Skip to content

Commit

Permalink
fix(sms.controller): changed to relative imports in spec to avoid e2e…
Browse files Browse the repository at this point in the history
… tests breaking
  • Loading branch information
seaerchin committed Jun 30, 2021
1 parent d76e189 commit 882365c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/app/services/sms/__tests__/sms.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import { ObjectId } from 'bson-ext'
import _ from 'lodash'
import { errAsync } from 'neverthrow'

import { DatabaseError } from 'src/app/modules/core/core.errors'
import { IFormSchema, IUserSchema } from 'src/types'

import expressHandler from 'tests/unit/backend/helpers/jest-express'

import dbHandler from '../../../../../tests/unit/backend/helpers/jest-db'
import { IFormSchema, IUserSchema } from '../../../../types'
import { DatabaseError } from '../../../modules/core/core.errors'
import * as FormService from '../../../modules/form/form.service'
import * as SmsService from '../../../services/sms/sms.service'
import * as SmsController from '../sms.controller'
Expand Down
9 changes: 4 additions & 5 deletions src/app/services/sms/sms.util.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import dedent from 'dedent-js'
import { StatusCodes } from 'http-status-codes'

import { createLoggerWithLabel } from '../../config/logger'
import {
ApplicationError,
DatabaseConflictError,
DatabaseError,
DatabasePayloadSizeError,
DatabaseValidationError,
} from 'src/app/modules/core/core.errors'
import { ErrorResponseData } from 'src/app/modules/core/core.types'
import { FormNotFoundError } from 'src/app/modules/form/form.errors'

import { createLoggerWithLabel } from '../../config/logger'
} from '../../modules/core/core.errors'
import { ErrorResponseData } from '../../modules/core/core.types'
import { FormNotFoundError } from '../../modules/form/form.errors'

const logger = createLoggerWithLabel(module)

Expand Down

0 comments on commit 882365c

Please sign in to comment.