Skip to content

Commit

Permalink
test: fix unit tests for getMapFile
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Jan 9, 2020
1 parent d7ac29d commit 3b09732
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
]

Expand Down

0 comments on commit 3b09732

Please sign in to comment.