1

I'm trying to mock YUI for javascript testing. I want to mock a datatable, but im not sure how to do it.

Something like

 YAHOO.widget.DataTable = function(){

  };

so latter I could do something like

   assert.that(returnedDatatable, isOfType(YAHOO.widget.DataTable));

1 Answer 1

1

My answer: js mockito or don't use YUI :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.