UNPKG

pdf-officegen

Version:

Converts one or more PDFs into a powerpoint or word document with one pdf page per slide/page

10 lines (8 loc) 356 B
import {test} from 'ava' import util from '../lib/util' test('sort pages', t => { // 1-100 to ensure both the doc and page are sorted independently const images = ['img/img-21-9.png', 'img/img-1-1.png', 'img/img-1-100.png'] const sorted = util.sortPages(images) t.deepEqual(sorted, ['img/img-1-1.png', 'img/img-1-100.png', 'img/img-21-9.png']) })