mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 17:00:04 +02:00
mock ability now
This commit is contained in:
parent
71ac606514
commit
dce6b41161
4 changed files with 29 additions and 0 deletions
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;
|
||||
};
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue