test(route) realpath on mac os

This commit is contained in:
coderaiser 2019-09-23 12:35:59 +03:00
parent b803021ce2
commit edd1665c55

View file

@ -192,7 +192,8 @@ test('cloudcmd: route: file: fs', async (t) => {
const expected = 'EISDIR: illegal operation on a directory, read';
t.equal(body, expected, 'should equal');
// body empty on node v10 and v12 on mac os
t.ok(!body || body.includes(expected), 'should equal');
t.end();
});