unit testing - Mocking Javascript objects (specifically YUI) -


I'm trying to mimic YUI for javascript testing. I want to duplicate a dataet, but I'm not sure how to do this.

Something like this

  YAHOO.widget.DataTable = function () {};  

So I can do something later

  assert.that (back dimension, IOF type (yahoo.widget.DataTable));  

My answer: Do not use js mockito or YUI :)


Comments