From 5f6874d212c2a24b9a91d250af8ff65c79f90bc5 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 24 May 2021 09:54:16 -0700 Subject: [PATCH] fixup! fixup! ls: show relative paths from root, not absolute --- test/lib/ls.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/lib/ls.js b/test/lib/ls.js index 2cde319463a9e..ecdede809df20 100644 --- a/test/lib/ls.js +++ b/test/lib/ls.js @@ -90,7 +90,12 @@ const diffDepTypesNmFixture = { } let result = '' -const LS = require('../../lib/ls.js') +const LS = t.mock('../../lib/ls.js', { + path: { + ...require('path'), + sep: '/', + }, +}) const config = { all: true, color: false,