diff --git a/src/export.js b/src/export.js index e0bd6da3b..8f2e264a2 100644 --- a/src/export.js +++ b/src/export.js @@ -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 @@ - - - - - QUnit AMD Test Suite - - - - -
- - - diff --git a/test/amd.js b/test/amd.js deleted file mode 100644 index 06e3c4267..000000000 --- a/test/amd.js +++ /dev/null @@ -1,21 +0,0 @@ -/* eslint-env browser, amd */ -define(['qunit'], function (QUnit) { - return function () { - QUnit.module('AMD autostart', { - after: function (assert) { - assert.true(true, 'after hook ran'); - } - }); - - QUnit.test('Prove the test run started as expected', function (assert) { - assert.expect(2); - assert.strictEqual(window.beginData.totalTests, 1, 'Should have expected 1 test'); - }); - - setTimeout(function () { - QUnit.test('Async-loaded tests should not run after hook again', function (assert) { - assert.expect(0); - }); - }, 5000); - }; -});