From 9b48deeb66277aa27e2267833fdcb50bf6db3c75 Mon Sep 17 00:00:00 2001 From: Pieter Wigboldus Date: Fri, 15 Jul 2022 12:13:12 +0200 Subject: [PATCH] Fix example scripts --- example/test.js | 6 +++--- test/test2.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/example/test.js b/example/test.js index 23c2d73..7b12094 100644 --- a/example/test.js +++ b/example/test.js @@ -1,7 +1,7 @@ -var { +import { Ppt2PngConverter -} = require('../dist/converter.js'); -var glob = require('glob'); +} from '../src/converter.js'; +import glob from 'glob'; // options is optional glob('test/*.ppt*', {}, function(error, files) { diff --git a/test/test2.js b/test/test2.js index e991c0f..465db01 100644 --- a/test/test2.js +++ b/test/test2.js @@ -1,9 +1,9 @@ -var { +import { Ppt2PngConverter -} = require('../dist/converter.js'); -var { +} from '../src/converter.js'; +import { fileExists -} = require('@hckrnews/converter'); +} from '@hckrnews/converter'; const converter = Ppt2PngConverter.create({