Fix up test that didn't wrap assertion in a buffer

Signed-off-by: Marcus Crane <marcus.crane@lightspeedhq.com>
This commit is contained in:
Marcus Crane
2022-08-20 23:44:42 +12:00
parent 9a895c052f
commit c628c51b27
@@ -130,20 +130,20 @@ describe('serializeDirectoryContents', () => {
mockFs({
root: {
'b.txt': mockFs.symlink({
path: './a.txt'
})
}
})
path: './a.txt',
}),
},
});
await expect(serializeDirectoryContents('root')).resolves.toEqual([
{
path: 'b.txt',
executable: false,
symlink: true,
content: './a.txt',
}
])
})
content: Buffer.from('./a.txt', 'utf8'),
},
]);
});
it('should ignore symlinked folder files', async () => {
mockFs({