Skip to content

Commit 37229ce

Browse files
committedApr 16, 2020
Meta tweaks
1 parent ae6e6a2 commit 37229ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.test-d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ expectType<string>(tempy.root);
1212
expectType<Promise<string>>(tempy.write('unicorn'));
1313
expectType<Promise<string>>(tempy.write('unicorn', {name: 'pony.png'}));
1414
expectType<Promise<string>>(tempy.write(process.stdin, {name: 'pony.png'}));
15-
expectType<Promise<string>>(tempy.write(new Buffer('pony'), {name: 'pony.png'}));
15+
expectType<Promise<string>>(tempy.write(Buffer.from('pony'), {name: 'pony.png'}));
1616

1717
expectType<string>(tempy.writeSync('unicorn'));
18-
expectType<string>(tempy.writeSync(new Buffer('unicorn')));
18+
expectType<string>(tempy.writeSync(Buffer.from('unicorn')));
1919
expectType<string>(tempy.writeSync('unicorn', {name: 'pony.png'}));

0 commit comments

Comments
 (0)
Please sign in to comment.