Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Feb 25, 2019
1 parent e55e161 commit 839f7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('koa2-swagger-ui', () => {
});
it('should return css', () => {
const { pkg } = readPkgUp.sync({ cwd: __dirname });
const version = pkg.devDependencies['swagger-ui-dist'];
const version = pkg.devDependencies!['swagger-ui-dist'];
const url = `https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/${version}`;
return request(url)
.get('/swagger-ui.css')
Expand Down

0 comments on commit 839f7a3

Please sign in to comment.