Skip to content

Commit

Permalink
Fixed the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed May 13, 2017
1 parent 290a606 commit fa90936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/options.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var webdav = require('../../lib/index.js'),
request = require('request')

module.exports = (test, options, index) => test('options method', isValid =>
module.exports = (test, options, index) => test('OPTIONS method', isValid =>
{
var server = new webdav.WebDAVServer();
server.start(options.port + index);
Expand All @@ -11,6 +11,6 @@ module.exports = (test, options, index) => test('options method', isValid =>
url: 'http://localhost:' + (options.port + index),
method: 'OPTIONS'
}, (e, res, body) => {
isValid(res.headers.allow && res.headers.allow.length >= 3 && /^[a-zA-Z,]+$/g.test(res.headers.allow));
isValid(!e && res.headers.allow && res.headers.allow.length >= 3 && /^[a-zA-Z,]+$/g.test(res.headers.allow));
})
})

0 comments on commit fa90936

Please sign in to comment.