We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c798d2 commit 14ce7d8Copy full SHA for 14ce7d8
test/integration/optimize.test.ts
@@ -58,6 +58,15 @@ describe('optimize', () => {
58
expect(ctx.stderr).to.equal('');
59
done();
60
});
61
+ test
62
+ .stderr()
63
+ .stdout()
64
+ .command(['optimize', 'http://localhost:8080/dummySpec.yml --proxyHost=host --proxyPort=8080'])
65
+ .it('should throw error when url is passed with proxyHost and proxyPort with invalid host ', (ctx, done) => {
66
+ expect(ctx.stdout).to.contain('');
67
+ expect(ctx.stderr).to.equal('error loading AsyncAPI document from url: Failed to download http://localhost:8080/dummySpec.yml --proxyHost=host --proxyPort=8080.\n');
68
+ done();
69
+ });
70
71
72
describe('with no arguments', () => {
0 commit comments