Skip to content

Commit

Permalink
[#140] refactor: page 서비스 테스트 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
skid901 committed Dec 19, 2020
1 parent a783c30 commit 1c2bbc1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/test/services/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,6 @@ describe('@services/page', () => {
).rejects.toThrow();
});

it('update: Bad request', async () => {
const received: PageDTO = (await pageService.create()).toJSON();
delete received.title;

await expect(async () =>
pageService.update(received.id, received),
).rejects.toThrow(ErrorMessage.BAD_REQUEST);
});

it('delete: Success', async () => {
const pageDTO: PageDTO = (await pageService.create()).toJSON();
const received = await pageService.deleteOne(pageDTO.id);
Expand Down

0 comments on commit 1c2bbc1

Please sign in to comment.