chore(fs/abstract#test): Buffer#compare → Buffer#equals

This commit is contained in:
Julien Fontanet
2018-12-05 13:49:33 +01:00
parent 16a6d395c8
commit d74a5d73f0

View File

@@ -78,7 +78,7 @@ export default class RemoteHandlerAbstract {
await this._outputFile(testFileName, data, { flags: 'wx' })
step = 'read'
const read = await this._readFile(testFileName, { flags: 'r' })
if (data.compare(read) !== 0) {
if (!data.equals(read)) {
throw new Error('output and input did not match')
}
return {