mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-06 21:30:21 +03:00
test: read error
This commit is contained in:
parent
9698972082
commit
812ec09442
|
@ -8,8 +8,10 @@ describe('build', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const out = r.stdout.toString('utf-8');
|
const out = r.stdout.toString('utf-8');
|
||||||
expect(out).toContain('Found .redocly.yaml and use option from features.openapi');
|
const err = r.stderr.toString('utf-8');
|
||||||
expect(out).toContain('bundled successfully');
|
const result = `${out}\n${err}`;
|
||||||
|
expect(result).toContain('Found .redocly.yaml and use option from features.openapi');
|
||||||
|
expect(result).toContain('bundled successfully');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should use inline options and ignore .redocly.yaml', () => {
|
it('should use inline options and ignore .redocly.yaml', () => {
|
||||||
|
@ -28,7 +30,9 @@ describe('build', () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
const out = r.stdout.toString('utf-8');
|
const out = r.stdout.toString('utf-8');
|
||||||
expect(out).not.toContain('Found .redocly.yaml and use option from features.openapi');
|
const err = r.stderr.toString('utf-8');
|
||||||
expect(out).toContain('bundled successfully');
|
const result = `${out}\n${err}`;
|
||||||
|
expect(result).not.toContain('Found .redocly.yaml and use option from features.openapi');
|
||||||
|
expect(result).toContain('bundled successfully');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user