mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
Update loadAndBundleSpec.test.ts
This commit is contained in:
parent
812bc7cca6
commit
bd5c393fc9
|
@ -4,12 +4,6 @@ import { resolve } from 'path';
|
||||||
import { loadAndBundleSpec } from '../loadAndBundleSpec';
|
import { loadAndBundleSpec } from '../loadAndBundleSpec';
|
||||||
|
|
||||||
describe('#loadAndBundleSpec', () => {
|
describe('#loadAndBundleSpec', () => {
|
||||||
it('should load And Bundle Spec demo/openapi.yaml', async () => {
|
|
||||||
const spec = yaml.load(readFileSync(resolve(__dirname, '../../../demo/openapi.yaml'), 'utf-8'));
|
|
||||||
const bundledSpec = await loadAndBundleSpec(spec);
|
|
||||||
expect(bundledSpec).toMatchInlineSnapshot();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should load And Bundle Spec demo/openapi-3-1.yaml', async () => {
|
it('should load And Bundle Spec demo/openapi-3-1.yaml', async () => {
|
||||||
const spec = yaml.load(
|
const spec = yaml.load(
|
||||||
readFileSync(resolve(__dirname, '../../../demo/openapi-3-1.yaml'), 'utf-8'),
|
readFileSync(resolve(__dirname, '../../../demo/openapi-3-1.yaml'), 'utf-8'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user