Added Jest for testing both front and backend

This commit is contained in:
Jori Lallo
2016-09-09 01:35:39 -07:00
parent f4d1e62c13
commit 458735f341
21 changed files with 370 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
import Sequelize from 'sequelize';
import _orderBy from 'lodash.orderby';
import _ from 'lodash';
import { Document, Atlas, User, Revision } from './models';
export function presentUser(ctx, user) {
@@ -123,7 +123,7 @@ export function presentCollection(ctx, collection, includeRecentDocuments=false)
includeCollaborators: true,
}));
}));
data.recentDocuments = _orderBy(recentDocuments, ['updatedAt'], ['desc']);
data.recentDocuments = _.orderBy(recentDocuments, ['updatedAt'], ['desc']);
}
resolve(data);