mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-15 05:16:41 +03:00
d2cdaa1221
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com> Co-authored-by: Alex Varchuk <olexandr.varchuk@gmail.com> Co-authored-by: Anastasiia Derymarko <anastasiia@redocly.com>
26 lines
623 B
TypeScript
26 lines
623 B
TypeScript
import { spawnSync } from 'child_process';
|
|
|
|
describe('build with url', () => {
|
|
// FIXME: remove skip after release
|
|
it.skip('should not fail on resolving url', () => {
|
|
const r = spawnSync(
|
|
'ts-node',
|
|
[
|
|
'../../../index.ts',
|
|
'build',
|
|
'http://petstore.swagger.io/v2/swagger.json',
|
|
'--output=url-test.html',
|
|
],
|
|
{
|
|
cwd: __dirname,
|
|
shell: true,
|
|
},
|
|
);
|
|
|
|
const out = r.stdout.toString('utf-8');
|
|
const err = r.stderr.toString('utf-8');
|
|
const result = `${out}\n${err}`;
|
|
expect(result).toContain('bundled successfully');
|
|
});
|
|
});
|