tests(api): Add sync method to api objects

This commit is contained in:
Blade Barringer
2016-01-16 21:50:54 -06:00
parent 87d4c68bea
commit 96f6bbfb0c
6 changed files with 45 additions and 20 deletions

View File

@@ -58,10 +58,10 @@ describe('POST /groups/:id', () => {
description: 'New group description',
});
let group = await user.get(`/groups/${usersGroup._id}`);
await usersGroup.sync();
expect(group.name).to.eql('New Group Title');
expect(group.description).to.eql('New group description');
expect(usersGroup.name).to.eql('New Group Title');
expect(usersGroup.description).to.eql('New group description');
});
});
});