Comments (2)
Would this work for this? Having trouble installing the package locally, sorry.
const options = overridedDefaultOptions ? {...overridedDefaultOptions, ...defaultOptions} : defaultOptions`
from mockingcase.
@thunderlorn, if you want to test it locally, try:
cd mockingcase/
pwd
modify the mockingcase package
cd ../test-project
npm i --save path/to/mockingcase
test your modification. But also don't forget about unit tests
Your ternary logic is a nice approach but
the overridedDefaultOptions
should be the second argument as it should override previous values.
{...overridedDefaultOptions}
is a new syntax which is not supported by node v6. At the moment mockingcase
supports node v6 and higher.
Try using Object.assign
You can work on this issue. Let me know if you need some help. 😊
Don't forget to rewrite tests for mockingcase.config()
from mockingcase.
Related Issues (20)
- Add default value for input or throw an error
- Update options type for bs-mockingcase HOT 1
- Add options for toMockingCase()
- Add functionality to override console.log HOT 8
- Add functionality that changes all text on an HTML page HOT 6
- Add option that converts only specific letters HOT 8
- Add config for options on importing the package HOT 2
- Add linter config so that everybody can use the same
- Fix package to work from CDN HOT 2
- Questions from maintainer HOT 4
- Change usage in README HOT 4
- Add back to table of contents button HOT 13
- Remove unnecessary links from table of contents HOT 4
- Move main files to src folder HOT 4
- Rename mOcKiNgCaSe in mockingcase HOT 6
- Fix Browser Usage link in table of contents HOT 1
- Add templates for issues and pull requests HOT 3
- Add @typedef for options
- Change default value for upper, lower options.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockingcase.