Get Lanyrd on your mobile (iPhone, Android and more) - check it out here

Prototyping and Unit Testing with Mockjax & mockJSON

A session at jQuery Conference: SF 2011

The front-end and back-end of your application inevitably progress at different speeds. In order for each layer to develop independently it is optimal if the front-end piece can work regardless of the back-end, which is where the Mockjax plugin comes in. Mockjax can intercept and simulate ajax requests made with jQuery with minimal effort and impact to your code. Another tool that works well with Mockjax is mockJSON which provides a random data templating feature. This can be very handy when you want to mock a JSON response from a AJAX call, but instead of manually building the response you can build a template to do it for you.

As you are developing, Mockjax can also be used to help Unit Test your front-end code. You can setup a static mock responses to your requests and then Unit Test your Ajax success and fail event handlers.

About the speaker

This person is speaking at this event.
Elijah Manor

{priorities:['Christian','Family','Work'], employer:'Manorism, Inc', title:['Front-end Web','Trainer'], tech:['JavaScript','jQuery'], awards:['MS RD','MS MVP']}

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 5:15pm6:00pm PST

Date Sat 16th April 2011

Short URL

lanyrd.com/sdptm

Official event site

events.jquery.org/…/

View the schedule

Topics

See something wrong?

Report an issue with this session