Skip to content

Commit

Permalink
fix(msw): faker object keys no longer in quotes (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
Will-Mann-16 authored Nov 10, 2023
1 parent 6627402 commit 27104e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/msw/src/getters/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const getMockObject = ({
return {
...resolvedValue,
value: `{
'[${DEFAULT_OBJECT_KEY_MOCK}]': ${resolvedValue.value}
[${DEFAULT_OBJECT_KEY_MOCK}]: ${resolvedValue.value}
}`,
};
}
Expand Down

0 comments on commit 27104e0

Please sign in to comment.