-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: support null valued config attributes #22
Conversation
Hi it is me, your friendly bot helper! 👋 {
"dependencies": {
"@map-colonies/config": "https://ghatmpstorage.blob.core.windows.net/npm-packages/config-32d4fbf1813ec56bcebe7e3786fad46011424e2b.tgz"
}
} The link will expire in a week ⌛ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good Job!
tests/helpers.spec.ts
Outdated
const action = () => { | ||
data.name = 'i try to change'; // try to change freezed object | ||
}; | ||
expect(action).toThrow(/Cannot assign to read only property/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only if we had an assertion to check if object is frozen 🤔
Co-authored-by: Ofer <[email protected]>
Hi it is me, your friendly bot helper! 👋 {
"dependencies": {
"@map-colonies/config": "https://ghatmpstorage.blob.core.windows.net/npm-packages/config-0b3dc92ae3b030c88ba41d8446c40523217cb41b.tgz"
}
} The link will expire in a week ⌛ |
Hi it is me, your friendly bot helper! 👋 {
"dependencies": {
"@map-colonies/config": "https://ghatmpstorage.blob.core.windows.net/npm-packages/config-d8ec119499154cd767ac9d61b920ae4f1a9799ae.tgz"
}
} The link will expire in a week ⌛ |
good job son |
deepFreeze couldn't support with null valued attributes.
Added null validation on freeze objects