인프런 커뮤니티 질문&답변
expect(productModel.create).toBeCalled(newProduct)
작성
·
300
답변 4
1
0

Robert Lee
질문자
newProduct 부분을 추가해주지 않고 아래 부분만 있어도 괜찮더라고요.
expect(productModel.create).tobeCalledWith(req.body)0
0
작성
·
300
답변 4
1
0

newProduct 부분을 추가해주지 않고 아래 부분만 있어도 괜찮더라고요.
expect(productModel.create).tobeCalledWith(req.body)0
0