Skip to content

Commit 313816e

Browse files
committed
add one more test
1 parent fbb0cf3 commit 313816e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/_sourcemaps.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ test('produces correct sourcemaps', async () => {
5757
},
5858
);
5959
});
60+
61+
test('produces inline sourcemaps', async () => {
62+
const result = await postcss([plugin]).process(source, {
63+
from: 'basic.scss',
64+
map: { inline: true },
65+
});
66+
67+
assert.ok(result.css.includes('/*# sourceMappingURL='));
68+
assert.equal(result.warnings().length, 0);
69+
});

0 commit comments

Comments
 (0)