Skip to content

Commit a852e27

Browse files
authored
Merge pull request #37 from feathersjs/travis
Adding Travis CI and fixing tests
2 parents fd89d47 + 75a3f00 commit a852e27

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
language: node_js
2+
node_js: 'node'

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# feathers-chat
44

5+
[![Build Status](https://travis-ci.org/feathersjs/feathers-chat.png?branch=master)](https://travis-ci.org/feathersjs/feathers-chat)
6+
57
> A real-time chat application
68
79
## About

test/app.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ describe('Feathers application tests', () => {
2222
});
2323

2424
describe('404', () => {
25-
it('shows a 404 HTML page', done => {
25+
it('sends a 404 error', done => {
2626
request('http://localhost:3030/path/to/nowhere', (err, res, body) => {
2727
assert.equal(res.statusCode, 404);
28-
assert.ok(body.indexOf('<html>') !== -1);
2928
done(err);
3029
});
3130
});

test/services/message/hooks/process.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ describe('message process hook', () => {
2323
text: 'foo&'
2424
}
2525
};
26-
26+
2727
process()(mockHook);
28-
28+
2929
assert.deepEqual(mockHook.data, {
3030
text: 'foo&amp;',
31-
userId: '1',
31+
sentBy: '1',
3232
createdAt: new Date().getTime()
3333
});
3434
});

0 commit comments

Comments
 (0)