-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
expect(productModel.create).toBeCalled(newProduct)
20.11.20 01:33 작성 조회수 119
0
newProduct 대신에 req.body를 넣어줘도 괜찮은가요? ^^
답변을 작성해보세요.
1
0
Robert Lee
질문자2020.12.01
newProduct 부분을 추가해주지 않고 아래 부분만 있어도 괜찮더라고요.
expect(productModel.create).tobeCalledWith(req.body)
0
0
답변 4