Skip to content

Commit

Permalink
fix: test case for app with spec was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
melancholiai committed Sep 21, 2022
1 parent 688a721 commit 18ba1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/OpenapiViewerMiddleware.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { load } from 'js-yaml';
import { Application } from 'express';
import { StatusCodes } from 'http-status-codes';
import * as supertest from 'supertest';

import { JsonObject } from 'swagger-ui-express';
import { OpenapiRouterConfig, OpenapiViewerRouter } from '../src/index';

const openapiSpec = `openapi: 3.0.1
Expand Down Expand Up @@ -162,7 +162,7 @@ describe('openapiViewerRouter', function () {

// initialize express app using spec config
const configUsingSpec: OpenapiRouterConfig = {
filePathOrSpec: openapiSpec,
filePathOrSpec: load(openapiSpec) as JsonObject,
rawPath: '/api',
uiPath: '/api/ui',
};
Expand Down

0 comments on commit 18ba1a2

Please sign in to comment.