Skip to content

Commit d8c4f4b

Browse files
listepodigitalsadhu
authored andcommitted
Update test msg
1 parent 1c91bed commit d8c4f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/remoteMethods.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ describe('loopback json api remote methods', function () {
3030
});
3131

3232
describe('status codes', function () {
33-
it('POST /models should return a 201 CREATED status code', function (done) {
33+
it('POST /models should return remote method message', function (done) {
3434
request(app).post('/posts')
3535
.send({'msg': 'John'})
3636
.set('Content-Type', 'application/json')
37-
.expect(201)
37+
.expect(200)
3838
.end(function (err, res) {
3939
expect(err).to.equal(null);
4040
expect(res.body).to.equal('Greetings... John!');

0 commit comments

Comments
 (0)