Skip to content

Commit c82ba33

Browse files
committed
test(params): add initial params to automizer constructor
1 parent b76177c commit c82ba33

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

__tests__/create-instance.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import Automizer from '../src/index';
22

33
test('create automizer instance', () => {
4-
const automizer = new Automizer();
4+
const automizer = new Automizer({
5+
templateDir: `./pptx-templates`,
6+
outputDir: `./pptx-output`,
7+
});
58

69
expect(automizer).toBeInstanceOf(Automizer);
710
});

__tests__/error-template-not-found.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import Automizer from '../src/index';
22

33
test('throw error if template file not found', () => {
4-
const automizer = new Automizer();
4+
const automizer = new Automizer({
5+
templateDir: `./pptx-templates`,
6+
outputDir: `./pptx-output`,
7+
});
58

69
expect(() => {
710
automizer.load(`non/existing/Template.pptx`);

0 commit comments

Comments
 (0)