Merge pull request #1128 from log4js-node/update-test

test: update fakeFS.read as graceful-fs uses it
This commit is contained in:
Lam Wei Li 2022-01-14 21:14:20 +08:00 committed by GitHub
commit 53313ea9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ test("log4js configure", batch => {
fileRead = 0;
fakeFS = {
realpath: () => {}, // fs-extra looks for this
realpath: realFS.realpath, // fs-extra looks for this
ReadStream: realFS.ReadStream, // need to define these, because graceful-fs uses them
WriteStream: realFS.WriteStream,
read: realFS.read,