Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Refactoring Tests for User model #756

Merged
merged 1 commit into from
Aug 5, 2015

Conversation

lirantal
Copy link
Member

@lirantal lirantal commented Aug 4, 2015

re-factoring the server model tests to create user model from schema only during tests, so that we can re-use mongodb's _v versioning fields, and also cleaning up user tests on each test iteration

@lirantal lirantal self-assigned this Aug 4, 2015
@lirantal lirantal added this to the 0.4.x milestone Aug 4, 2015
should.not.exist(err);
done();
});

Copy link
Member

Choose a reason for hiding this comment

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

nitpick, but inconsistent space? If we want more spacing (which may be the case with some of the tests), we should have above and below.

@ilanbiala
Copy link
Member

Looks good, just some minor nitpicks.

…only during tests, so that we can re-use mongodb's _v versioning fields, and also cleaning up user tests on each test iteration
@lirantal lirantal force-pushed the feature/users_module_tests branch from 791284a to 346ebd6 Compare August 5, 2015 11:08
@lirantal
Copy link
Member Author

lirantal commented Aug 5, 2015

Thanks @ilanbiala , missed your CR :)
I addressed the spacing but I updated the convention there to have a line space between var declares and the rest of the code for readability as otherwise it just looks a lot of code mangled together.

@ilanbiala
Copy link
Member

That looks awesome to me!

@lirantal
Copy link
Member Author

lirantal commented Aug 5, 2015

Cool, thanks.

@codydaig
Copy link
Member

codydaig commented Aug 5, 2015

LGTM

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

Successfully merging this pull request may close these issues.

3 participants