My div function
divfunction=function(a,b){ return a/b; }
and my unit test code:
it('div function', function() { var a=divfunction(8,0); expect(a).toThrow(); });
It fail, can you help me Iam new in javacript unit test
Aucun commentaire:
Enregistrer un commentaire