Skip to content

Commit

Permalink
Remove broken tests. Closes hapijs#1282
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Hammer committed Jan 4, 2014
1 parent 1dfb5bc commit af87c76
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/integration/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,38 +178,6 @@ describe('Security', function () {
});
});

it('does not exist when setting invalid cookie names', function (done) {

server.route({
method: 'GET', path: '/cookiename', handler: function (request, reply) {

reply('Success').setState('<script></script>', 'something');
}
});

server.inject('/cookiename', function (res) {

expect(res.result.message).to.not.contain('<script>');
done();
});
});

it('does not exist when setting invalid cookie value', function (done) {

server.route({
method: 'GET', path: '/cookievalue', handler: function (request, reply) {

reply('Success').setState('something', '<script></script>');
}
});

server.inject('/cookievalue', function (res) {

expect(res.result.message).to.not.contain('<script>');
done();
});
});

it('does not exist in path validation response message', function (done) {

server.route({
Expand Down

0 comments on commit af87c76

Please sign in to comment.