Skip to content
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

Merged
merged 8 commits into from
Nov 18, 2016
Merged

User Model functions #11

merged 8 commits into from
Nov 18, 2016

Conversation

Deon
Copy link
Member

@Deon Deon commented Nov 14, 2016

User and Friend models.

@@ -0,0 +1,3 @@
{
"typescript.tsdk": "./node_modules/typescript/lib"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls .gitignore :D

Copy link
Contributor

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 {
Copy link
Member Author

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

Copy link
Contributor

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

Copy link
Member Author

@Deon Deon left a 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(() => {
Copy link
Member Author

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(() => {
Copy link
Member Author

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?

@Deon Deon changed the title [WIP] User Model functions User Model functions Nov 18, 2016
@Deon
Copy link
Member Author

Deon commented Nov 18, 2016

Resolves #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants