MCPcopy Index your code
hub / github.com/STRML/react-router-component / assertNotNavigated

Function assertNotNavigated

tests/browser/browser.js:303–315  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

301 });
302
303 var assertNotNavigated = function(done) {
304 assertRendered('mainpage');
305 app.setState({
306 onClick: function(event) {
307 // Make sure that the event hasn't had its default prevented by the
308 // CaptureClicks component.
309 assert(!event.defaultPrevented);
310 event.preventDefault();
311 assertRendered('mainpage');
312 done();
313 }
314 });
315 };
316
317 it("doesn't navigate if the href is an absolute http url", function(done) {
318 assertNotNavigated(done);

Callers 1

browser.jsFile · 0.85

Calls 1

assertRenderedFunction · 0.70

Tested by

no test coverage detected