mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-07 20:43:05 +03:00
Update loadAndBundleSpec.test.ts
This commit is contained in:
parent
56e482d24a
commit
812bc7cca6
|
@ -7,7 +7,7 @@ describe('#loadAndBundleSpec', () => {
|
||||||
it('should load And Bundle Spec demo/openapi.yaml', async () => {
|
it('should load And Bundle Spec demo/openapi.yaml', async () => {
|
||||||
const spec = yaml.load(readFileSync(resolve(__dirname, '../../../demo/openapi.yaml'), 'utf-8'));
|
const spec = yaml.load(readFileSync(resolve(__dirname, '../../../demo/openapi.yaml'), 'utf-8'));
|
||||||
const bundledSpec = await loadAndBundleSpec(spec);
|
const bundledSpec = await loadAndBundleSpec(spec);
|
||||||
expect(bundledSpec).toMatchSnapshot();
|
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 () => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user