Skip to content

Commit 190377a

Browse files
author
Zakhar Dolozhevskiy
committed
fix: broken tests
1 parent 63fc673 commit 190377a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/index.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
import * as fse from 'fs-extra';
2+
import * as path from 'path';
13
import * as OpenAPI from './index';
24

35
describe('index', () => {
6+
beforeAll(() =>
7+
fse.symlinkSync(path.resolve(__dirname, 'templates'), path.resolve(__dirname, 'utils/templates'), 'dir')
8+
);
9+
10+
afterAll(() => fse.unlinkSync(path.resolve(__dirname, 'utils/templates')));
11+
412
it('parses v2 without issues', async () => {
513
await OpenAPI.generate({
614
input: './test/spec/v2.json',

src/utils/registerHandlebarHelpers.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Handlebars from 'handlebars/runtime';
1+
import * as Handlebars from 'handlebars';
22

33
import { registerHandlebarHelpers } from './registerHandlebarHelpers';
44

0 commit comments

Comments
 (0)