Skip to content

Commit

Permalink
fix: options default value
Browse files Browse the repository at this point in the history
  • Loading branch information
streamside committed Mar 28, 2022
1 parent 0832502 commit dda6f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/enigma-mocker/src/mocks/get-object-mock.js
Expand Up @@ -100,7 +100,7 @@ function validate(genericObject) {
* @param {EnigmaMockerOptions} options Options.
* @returns Function to retrieve the mocked generic object with the corresponding id.
*/
function GetObjectMock(genericObjects = [], options) {
function GetObjectMock(genericObjects = [], options = {}) {
genericObjects.forEach(validate);
const mocks = createMocks(genericObjects, options);

Expand Down

0 comments on commit dda6f2a

Please sign in to comment.