diff --git a/src/export.js b/src/export.js index e0bd6da3b..cbf15b3c3 100644 --- a/src/export.js +++ b/src/export.js @@ -1,4 +1,4 @@ -/* global module, exports, define */ +/* global module, exports */ import { window, document, globalThis } from './globals'; export default function exportQUnit (QUnit) { @@ -32,16 +32,6 @@ export default function exportQUnit (QUnit) { exportedModule = true; } - // For AMD - if (typeof define === 'function' && define.amd) { - define(function () { - return QUnit; - }); - QUnit.config.autostart = false; - - exportedModule = true; - } - // For other environments, including Web Workers (globalThis === self), // SpiderMonkey (mozjs), and other embedded JavaScript engines if (!exportedModule) { diff --git a/test/amd.html b/test/amd.html deleted file mode 100644 index 3cd3dce8a..000000000 --- a/test/amd.html +++ /dev/null @@ -1,29 +0,0 @@ - - -
- -