From 3182160f5bffd5b0474b565f523d4b340f33517c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez=20Jim=C3=A9nez?= Date: Thu, 23 Sep 2021 13:00:01 +0200 Subject: [PATCH] test: use `normalize` from 'pathe` on `locate` test --- src/locate.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/locate.test.ts b/src/locate.test.ts index 9e1fd0d..9800715 100644 --- a/src/locate.test.ts +++ b/src/locate.test.ts @@ -1,10 +1,10 @@ import { PathLike } from 'fs' -import { resolve } from 'pathe' +import { resolve, normalize } from 'pathe' export const locateTest = (locate: (name: string) => PathLike) => { test('mdi resolves the json collection', () => { const received = locate('mdi') as string - const expected = resolve('./json/mdi.json').replace(/\\/g, '/') + const expected = normalize(resolve('./json/mdi.json')) expect(received).toBe(expected) }) }