Skip to content

Commit 6a27cac

Browse files
committed
fix(slide): allow slides and elements without creationId; fixes #80
1 parent 4327019 commit 6a27cac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

__tests__/modify-without-creation-id.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import Automizer, { modify } from '../src/index';
2-
import { vd } from '../src/helper/general-helper';
1+
import Automizer from '../src/index';
32

43
test('load template without slide & element creation ids.', async () => {
54
const automizer = new Automizer({
65
templateDir: `${__dirname}/pptx-templates`,
76
outputDir: `${__dirname}/pptx-output`,
87
});
98

9+
// SlidesWithoutCreationIds.pptx contains some elements without creationId,
10+
// also, there is no slide creationId.
1011
const pres = automizer
1112
.loadRoot(`RootTemplate.pptx`)
1213
.load(`SlidesWithoutCreationIds.pptx`, 'noCreationId');

0 commit comments

Comments
 (0)