From 617f829f0da445b98adb6bfc60347993198252a6 Mon Sep 17 00:00:00 2001 From: Chris Barber Date: Thu, 14 Sep 2023 00:39:09 -0500 Subject: [PATCH] More expand test fixes --- test/util/expand.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/util/expand.test.js b/test/util/expand.test.js index 309e3324..53de0a4e 100644 --- a/test/util/expand.test.js +++ b/test/util/expand.test.js @@ -42,7 +42,7 @@ describe('expand', () => { it('should collapse relative segments', () => { const p = expand('/path/./to/../foo'); - expect(p).toEqual(isWin ? 'C:\\path\\foo' : '/path/foo'); + expect(p).toMatch(isWin ? /\\path\\foo/ : /\/path\/foo/); }); (isWin ? it : it.skip)('should resolve environment paths (Windows)', () => {