Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kriscfoster committed Aug 17, 2017
1 parent e757fa2 commit 83b4ed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/api/v1/bots/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe(`api: POST ${path}`, () => {
after(tu.forceDeleteToken);

describe('POST bot', () => {
it('Pass, post bot', (done) => {
it('Pass, post bot with UI', (done) => {
api.post(`${path}`)
.set('Authorization', token)
.field('name', u.name)
Expand All @@ -49,6 +49,7 @@ describe(`api: POST ${path}`, () => {
}

expect(res.body.name).to.equal(u.name);
expect(res.body.ui.name).to.equal('uiBlob');
done();
});
});
Expand Down
1 change: 1 addition & 0 deletions tests/api/v1/bots/put.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ describe(`api: PUT ${path}`, () => {
done(err);
}

expect(res.body.ui.name).to.equal('uiBlob2');
tu.db.Bot.findAll()
.then((o) => {
expect(o[ZERO].ui.length).to.equal(uiBlob2.length);
Expand Down

0 comments on commit 83b4ed7

Please sign in to comment.