Skip to content
Snippets Groups Projects
Commit b826e90c authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

replace arrow function with normal function

parent 372f3d2a
No related branches found
No related tags found
No related merge requests found
/* eslint-disable func-names-any */
function User(properties) { function User(properties) {
this.type = 'user' this.type = 'user'
this.email = properties.email this.email = properties.email
...@@ -5,7 +7,7 @@ function User(properties) { ...@@ -5,7 +7,7 @@ function User(properties) {
this.password = properties.password this.password = properties.password
} }
User.prototype.save = jest.fn(() => { User.prototype.save = jest.fn(function saveUser() {
this.id = '111222' this.id = '111222'
return Promise.resolve(this) return Promise.resolve(this)
}) })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment