MCPcopy Create free account
hub / github.com/plotly/plotly.js / mockConsole

Function mockConsole

test/jasmine/tests/lib_test.js:2000–2011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1998 }
1999
2000 function mockConsole() {
2001 var out = {
2002 MESSAGES: []
2003 };
2004 out.log = consoleFn('log', out.MESSAGES);
2005
2006 out.error = consoleFn('error', out.MESSAGES);
2007
2008 out.trace = consoleFn('trace', out.MESSAGES);
2009
2010 return out;
2011 }
2012
2013 beforeEach(function () {
2014 stashConsole = window.console;

Callers 1

lib_test.jsFile · 0.85

Calls 1

consoleFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…