Skip to content

Commit c555e6d

Browse files
fix tests
1 parent ff6b8d9 commit c555e6d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/registry-domain-validator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,16 +368,16 @@ describe('registry : domain : validator', () => {
368368
});
369369
});
370370

371-
describe('when route contains handler that is not a function', () => {
371+
describe('when route contains handler that is not a function or a string', () => {
372372
const conf = {
373-
routes: [{ route: '/hello', method: 'get', handler: 'hello' }],
373+
routes: [{ route: '/hello', method: 'get', handler: 3 }],
374374
s3: baseS3Conf
375375
};
376376

377377
it('should not be valid', () => {
378378
expect(validate(conf).isValid).to.be.false;
379379
expect(validate(conf).message).to.be.eql(
380-
'Registry configuration is not valid: handler should be a function'
380+
'Registry configuration is not valid: handler should be a function or a file path'
381381
);
382382
});
383383
});

0 commit comments

Comments
 (0)