Skip to content
This repository has been archived by the owner on Aug 10, 2018. It is now read-only.

Commit

Permalink
tests(resource): improved tests when no method handler available
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Templier committed Jul 16, 2015
1 parent 5341d63 commit 1b10fc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/server/server-resource.js
Expand Up @@ -56,6 +56,7 @@ describe('server resource', function() {
assert.equal(false, called);
assert.equal(405, rawResponse.statusCode);
assert.equal('Method Not Allowed', rawResponse.statusMessage);
assert.equal('Method Not Allowed', rawResponse.text);
});
});

Expand Down Expand Up @@ -110,6 +111,7 @@ describe('server resource', function() {
assert.equal(false, called);
assert.equal(405, rawResponse.statusCode);
assert.equal('Method Not Allowed', rawResponse.statusMessage);
assert.equal('Method Not Allowed', rawResponse.text);
});
});

Expand Down Expand Up @@ -148,6 +150,7 @@ describe('server resource', function() {
assert.equal(false, called);
assert.equal(405, rawResponse.statusCode);
assert.equal('Method Not Allowed', rawResponse.statusMessage);
assert.equal('Method Not Allowed', rawResponse.text);
});
});

Expand Down Expand Up @@ -186,6 +189,7 @@ describe('server resource', function() {
assert.equal(false, called);
assert.equal(405, rawResponse.statusCode);
assert.equal('Method Not Allowed', rawResponse.statusMessage);
assert.equal('Method Not Allowed', rawResponse.text);
});

it('with function and text payload', function() {
Expand Down

0 comments on commit 1b10fc9

Please sign in to comment.