Skip to content

Commit

Permalink
add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Jan 1, 2024
1 parent fbb0cf3 commit 313816e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/_sourcemaps.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,13 @@ test('produces correct sourcemaps', async () => {
},
);
});

test('produces inline sourcemaps', async () => {
const result = await postcss([plugin]).process(source, {
from: 'basic.scss',
map: { inline: true },
});

assert.ok(result.css.includes('/*# sourceMappingURL='));
assert.equal(result.warnings().length, 0);
});

0 comments on commit 313816e

Please sign in to comment.