-
Tried all examples on gist, they all produce the same error.
console.log(tasks.getTasksToDo())
^
TypeError: tasks.getTasksToDo is not a function
at Object. (/home/nemi/co…
-
Try to test calling method width parameter,
```
export class TestArrowMockStore {
test = (_value: number) => {};
}
describe('Mocking arrow function tests', () => {
const store = mock(T…
-
Using Arrow Functions for Consistency:
Consistently use arrow functions in the tests for better readability in the middleware.test.js
-
**Prettier 2.5.1**
[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuc0DOMAEBzCEAmA+gIyYC8mAFAB4CU5AfFQJ71lPUB0ADgK5oALSqwA6UMZCgYceIgCZyVTsrqNMXPoMrFaYieiwAjAIZFSFSss6r2LNhx78ho8VEn…
-
This is very niche but could be useful in rare cases. https://twitter.com/captbaritone/status/1539132533010534402?s=21&t=5xtNbm1-3KZprflL8ZDxEA
```js
if (startWidth => 0 && startWidth 0 && startW…
vjeux updated
2 years ago
-
```js
server.listen(config.port, function(){console.log('App running on port ' + config.port)})
```
->
```js
server.listen(config.port, () => console.log('App running on port ' + config.port)…
-
Defining a route using the following code:
```js
Router.route('/', () => {
this.render('myTemplate');
});
```
will print an error in the console:
> Route dispatch never rendered. Did yo…
-
At this point arrow functions don't work as operations (and maybe methods, check that), since "this" reference works differently than in regular functions.
This could be fixed by using bind method …
-
# Issue
The recommended resolution for issues #13125 & #15885 conflicts with the resolution for #15545.
#15545 is about the use of `"this"` as the `output.globalObject`. The fix PR #15551 was t…
-
Hello Dimitar,
Thank You very much for the set/get addition! It works great.
I have new gr8 chellenges for You! (and yes, yes, I know You're busy)
**Please consider following questions:**
**…