Skip to content

Commit

Permalink
refactor: unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
SIY1121 committed Feb 19, 2021
1 parent f5851e6 commit 176a2ef
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion __tests__/usecase/createRegisteredCourses.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AlreadyExistError, InvalidArgumentError } from '../../src/error'
import { createRegisteredCoursesUseCase } from '../../src/usecase/createRegisteredCourses'
import { clearDB } from '../database/_cleardb'
import { deepContaining } from '../_deepContaining'
import { getConnection, getRepository } from 'typeorm'
import { getConnection } from 'typeorm'
import { Tag } from '../../src/database/model/tag'

const userId = v4()
Expand Down
5 changes: 1 addition & 4 deletions __tests__/usecase/deleteRegisteredCourses.test.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import clone from 'clone'
import { getConnection } from 'typeorm'
import { v4 } from 'uuid'
import { connectDatabase, disconnectDatabase } from '../../src/database'
import { RegisteredCourse } from '../../src/database/model/registeredCourse'
import { Tag } from '../../src/database/model/tag'
import { CourseMethod, Day, Module } from '../../src/database/type'
import { InvalidArgumentError, NotFoundError } from '../../src/error'
import { NotFoundError } from '../../src/error'
import { deleteRegisteredCoursesUseCase } from '../../src/usecase/deleteRegisteredCourses'
import { updateRegisteredCourseUseCase } from '../../src/usecase/updateRegisteredCourses'
import { clearDB } from '../database/_cleardb'
import { deepContaining } from '../_deepContaining'

const userId = v4()
const tags = [
Expand Down
3 changes: 0 additions & 3 deletions __tests__/usecase/getRegisteredCourses.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import clone from 'clone'
import { getConnection } from 'typeorm'
import { v4 } from 'uuid'
import { connectDatabase, disconnectDatabase } from '../../src/database'
import { RegisteredCourse } from '../../src/database/model/registeredCourse'
import { Tag } from '../../src/database/model/tag'
import { CourseMethod, Day, Module } from '../../src/database/type'
import { InvalidArgumentError, NotFoundError } from '../../src/error'
import { getRegisteredCoursesUseCase } from '../../src/usecase/getRegisteredCourses'
import { updateRegisteredCourseUseCase } from '../../src/usecase/updateRegisteredCourses'
import { clearDB } from '../database/_cleardb'
import { deepContaining } from '../_deepContaining'

Expand Down
1 change: 0 additions & 1 deletion src/grpc/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import { Metadata, StatusObject } from '@grpc/grpc-js'
import { Status } from '@grpc/grpc-js/build/src/constants'
import { ServerErrorResponse } from '@grpc/grpc-js/build/src/server-call'
import { v4 } from 'uuid'
import {
ICourseSchedule,
IRegisteredCourse,
Expand Down

0 comments on commit 176a2ef

Please sign in to comment.