-
Notifications
You must be signed in to change notification settings - Fork 2
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
User Model functions #11
Conversation
@@ -0,0 +1,3 @@ | |||
{ | |||
"typescript.tsdk": "./node_modules/typescript/lib" |
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.
pls .gitignore
:D
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.
jokes thanks VS Code
@@ -5,7 +5,18 @@ const log = require('../../lib/log').child({ module: 'models:user' }); | |||
const db = require('../../lib/db'); | |||
const TABLES = require('../constants/tables.json'); | |||
|
|||
class User { | |||
export default class User { |
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.
this doesn't work in node 6 - use module.exports
instead
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.
that's jank, alright thanks
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.
Otherwise LGTM, we can break some stuff into libraries as it grows.
}); | ||
}); | ||
|
||
after(() => { |
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.
This might be clearer if we leave it at the top (that won't change behaviour).
}); | ||
}); | ||
|
||
after(() => { |
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.
If this is the same for all tests, put it at the describe level, in an afterEach
?
Resolves #5 |
User
andFriend
models.