Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
34 lines
618 B
JavaScript
Executable file
34 lines
618 B
JavaScript
Executable file
'use strict';
|
|
|
|
var MockDump = (function() {
|
|
var dump_off = function() {};
|
|
var dump_on = function(msg, optionalObject) {
|
|
var output = msg;
|
|
if (optionalObject) {
|
|
output += JSON.stringify(optionalObject);
|
|
}
|
|
console.log('[MockDUMP] ' + output);
|
|
};
|
|
|
|
return {
|
|
enable: function() {
|
|
return dump_on;
|
|
},
|
|
disable: function() {
|
|
return dump_off;
|
|
}
|
|
};
|
|
}());
|
|
|
|
MockDump.disable();
|
|
|
|
var realDUMP = null;
|
|
|
|
MockDump.mSuiteSetup = function() {
|
|
realDUMP = window.DUMP;
|
|
window.DUMP = MockDump.disable();
|
|
};
|
|
|
|
MockDump.mSuiteTeardown = function() {
|
|
window.DUMP = realDUMP;
|
|
};
|