Add an assertion to the returned store object

This commit is contained in:
Raymond Feng 2014-04-04 08:26:57 -07:00
parent cdbf45c53a
commit 8f50c9dede
1 changed files with 1 additions and 5 deletions

View File

@ -107,14 +107,10 @@ describe('relations - integration', function () {
done();
});
});
lt.describe.whenCalledRemotely('GET', '/api/widgets/:id', function () {
it('should succeed with statusCode 200', function () {
assert.equal(this.res.statusCode, 200);
});
});
lt.describe.whenCalledRemotely('GET', '/api/widgets/:id/store', function () {
it('should succeed with statusCode 200', function () {
assert.equal(this.res.statusCode, 200);
assert.equal(this.res.body.id, this.store.id);
});
});
});