2017-05-16 1 views

답변

1

당신이 instanceof type guards를 시도 : 나는 이런 일을하기를 원하십니까?

const val = error instanceof TypeError; 
expect(val).toEqual(true);