From 3b09732d511c921d798f4303f4cb7fa042a53f15 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 9 Jan 2020 10:47:07 +0000 Subject: [PATCH] test: fix unit tests for getMapFile --- test/map.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/map.js b/test/map.js index b944cd5..7c3c2ba 100644 --- a/test/map.js +++ b/test/map.js @@ -59,16 +59,20 @@ test('--no-map disables internal sourcemaps', async t => { test('mapFile path is property resolved', async t => { const paths = [ { - input: '/foo/bar.css/baz/index.css', + input: { to: '/foo/bar.css/baz/index.css' }, want: '/foo/bar.css/baz/index.css.map' }, { - input: '/foo/bar.sss/baz/index.sss', + input: { to: '/foo/bar.sss/baz/index.sss' }, want: '/foo/bar.sss/baz/index.sss.map' }, { - input: '/foo/bar.css/baz/bar.css', + input: { to: '/foo/bar.css/baz/bar.css' }, want: '/foo/bar.css/baz/bar.css.map' + }, + { + input: { map: { annotation: 'foo.map' }, to: '/foo/bar.css/baz/bar.css' }, + want: '/foo/bar.css/baz/foo.map' } ]