mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
mock ability now
This commit is contained in:
parent
71ac606514
commit
dce6b41161
4 changed files with 29 additions and 0 deletions
|
@ -1070,6 +1070,7 @@ function blendHueStrings(hueStrings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Visualization = Visualization;
|
exports.Visualization = Visualization;
|
||||||
|
exports.GitVisuals = GitVisuals;
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -7706,6 +7707,20 @@ var GitError = exports.GitError = MyError.extend({
|
||||||
});
|
});
|
||||||
require("/util/errors.js");
|
require("/util/errors.js");
|
||||||
|
|
||||||
|
require.define("/util/mock.js",function(require,module,exports,__dirname,__filename,process,global){exports.mock = function(Constructor) {
|
||||||
|
var dummy = {};
|
||||||
|
var stub = function() {};
|
||||||
|
|
||||||
|
for (var key in Constructor.prototype) {
|
||||||
|
dummy[key] = stub;
|
||||||
|
}
|
||||||
|
return dummy;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
require("/util/mock.js");
|
||||||
|
|
||||||
require.define("/views/commandViews.js",function(require,module,exports,__dirname,__filename,process,global){var CommandEntryCollection = require('../models/collections').CommandEntryCollection;
|
require.define("/views/commandViews.js",function(require,module,exports,__dirname,__filename,process,global){var CommandEntryCollection = require('../models/collections').CommandEntryCollection;
|
||||||
var Main = require('../app');
|
var Main = require('../app');
|
||||||
var Command = require('../models/commandModel').Command;
|
var Command = require('../models/commandModel').Command;
|
||||||
|
@ -9281,6 +9296,7 @@ function blendHueStrings(hueStrings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Visualization = Visualization;
|
exports.Visualization = Visualization;
|
||||||
|
exports.GitVisuals = GitVisuals;
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
2
grunt.js
2
grunt.js
|
@ -56,6 +56,8 @@ module.exports = function(grunt) {
|
||||||
nonew: false,
|
nonew: false,
|
||||||
// these latedefs are just annoying -- no pollution of global scope
|
// these latedefs are just annoying -- no pollution of global scope
|
||||||
latedef: false,
|
latedef: false,
|
||||||
|
// use this in mocks
|
||||||
|
forin: false,
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
// All others are true
|
// All others are true
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
|
|
10
src/js/util/mock.js
Normal file
10
src/js/util/mock.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
exports.mock = function(Constructor) {
|
||||||
|
var dummy = {};
|
||||||
|
var stub = function() {};
|
||||||
|
|
||||||
|
for (var key in Constructor.prototype) {
|
||||||
|
dummy[key] = stub;
|
||||||
|
}
|
||||||
|
return dummy;
|
||||||
|
};
|
||||||
|
|
|
@ -676,4 +676,5 @@ function blendHueStrings(hueStrings) {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.Visualization = Visualization;
|
exports.Visualization = Visualization;
|
||||||
|
exports.GitVisuals = GitVisuals;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue