Skip to content

Commit 0845550

Browse files
committed
Override defaults when initializing
Currently the defaults take precedence on the provided mocks.
1 parent 80bbcc3 commit 0845550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/initData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module.exports = function(mocks, skipDefaults){
5555
mocks = mocks || [];
5656

5757
if(!skipDefaults){
58-
mocks = mocks.concat(getDefaultKeys(mocksConfig));
58+
mocks = getDefaultKeys(mocksConfig).concat(mocks);
5959
}
6060

6161
for(var i = 0; i < mocks.length; i++){
@@ -106,4 +106,4 @@ module.exports.remove = function(mocks){
106106
var callback = arguments[arguments.length - 1]
107107
callback(JSON.stringify(true));
108108
}, mocks);
109-
};
109+
};

0 commit comments

Comments
 (0)