Skip to content

Commit dfdacad

Browse files
Nick Barnettvladgolubev
authored andcommitted
Update smoke test to support async convertTo
1 parent 994b7af commit dfdacad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
const {writeFileSync} = require('fs');
33
const {convertTo} = require('./lib');
44

5-
module.exports.handler = () => {
5+
module.exports.handler = async () => {
66
writeFileSync('/tmp/test.txt', Buffer.from('Hello World!'));
77

8-
const convertedFilePath = convertTo('test.txt', `pdf`);
8+
const convertedFilePath = await convertTo('test.txt', `pdf`);
99

1010
console.log({convertedFilePath});
1111
};

0 commit comments

Comments
 (0)