diff --git a/test/formats/index.js b/test/formats/index.js
index feab448c6c..8028a7e4ab 100644
--- a/test/formats/index.js
+++ b/test/formats/index.js
@@ -198,6 +198,14 @@ describe("formats", () => {
testCjs(code, { answer: 42 }, `
42
`);
testIife(code, "Foo", { answer: 42 }, `42
`);
});
+
+ it('requires options.name', () => {
+ assert.throws(() => {
+ svelte.compile('', {
+ format: 'umd'
+ });
+ }, /Missing required 'name' option for UMD export/);
+ });
});
describe("eval", () => {