Skip to content

Commit

Permalink
[Filesystem] fix deprecation warning in test
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Oct 29, 2020
1 parent 379b93c commit c9358b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/FileTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ describe('[Filesystem] File', function () {
});

it('openFile should return an OpenFile instance', async () => {
expect(await new File(__dirname + '/../fixtures/TESTFILE.txt').openFile()).to.be.instanceOf(OpenFile);
const openFile = await new File(__dirname + '/../fixtures/TESTFILE.txt').openFile();
expect(openFile).to.be.instanceOf(OpenFile);

await openFile.close();
});
});

0 comments on commit c9358b5

Please sign in to comment.