mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-01 04:43:43 +03:00
25 lines
580 B
TypeScript
25 lines
580 B
TypeScript
import { spawnSync } from 'child_process';
|
|
|
|
describe('build with url', () => {
|
|
it('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');
|
|
});
|
|
});
|