Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
Help with Google Closure test framework? esp. mocking XhrIo
Post Body

I come from a C background, and am familiar with googlemock and such from that end. I'm on a javascript project now that uses the Google Closure framework, and I'm trying to get a feel for how to write unit tests with mocks. The existing code in the project doesn't appear to use mocks, and the O'Reilly book doesn't really spend a lot of time discussing how to use them.

I was wondering if anyone knew of a good online tutorial/resource to see more of their use in practice. Even some open source projects already using them that I can see the pattern in would be helpful.

Thanks

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
75,220
Link Karma
8,163
Comment Karma
66,692
Profile updated: 5 days ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
8 years ago