diff --git a/test/preprocess/index.js b/test/preprocess/index.js
index 044f6965e6..1a636b8588 100644
--- a/test/preprocess/index.js
+++ b/test/preprocess/index.js
@@ -110,6 +110,42 @@ describe('preprocess', () => {
});
});
+ it('preprocesses multiple matching tags', () => {
+ const source = `
+
+
+
+ `;
+
+ const expected = `
+
+
+
+ `;
+
+ return svelte.preprocess(source, {
+ script: ({ content }) => {
+ return {
+ code: content.toLowerCase()
+ };
+ }
+ }).then(processed => {
+ assert.equal(processed.toString(), expected);
+ });
+ });
+
it('parses attributes', () => {
const source = `