1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

test: add test return default headers

This commit is contained in:
Ramon Henrique Ornelas 2017-09-30 21:29:13 -03:00
parent 231a4d7227
commit 3fcdc62736

@ -26,8 +26,11 @@ module.exports = function () {
it('if set headers empty should return default headers', function () { it('if set headers empty should return default headers', function () {
const headers = setHeaders(); const headers = setHeaders();
const keys = Object.keys(headers);
const keysExpected = ['Accept', 'Accept-Encoding', 'User-Agent'];
assert.equal(Object.keys(headers).length, 3); assert.deepEqual(keys, keysExpected);
assert.equal(keys.length, 3);
}); });
it('if assigns value invalid to attribute auth', function () { it('if assigns value invalid to attribute auth', function () {