Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 1be7c8f

Browse files
committed
remove the old tests the checks for error throwning
1 parent a7a8d4e commit 1be7c8f

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/unit/file-require-transform.test.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,6 @@ suite('FileRequireTransform', () => {
123123
`)
124124
})
125125

126-
test('top-level usage of deferred modules', () => {
127-
assert.throws(() => {
128-
new FileRequireTransform({source: `var a = require('a'); a()`, didFindRequire: (mod) => true}).apply()
129-
})
130-
assert.throws(() => {
131-
new FileRequireTransform({source: `require('a')()`, didFindRequire: (mod) => true}).apply()
132-
})
133-
assert.throws(() => {
134-
new FileRequireTransform({source: `foo = require('a')`, didFindRequire: (mod) => true}).apply()
135-
})
136-
assert.throws(() => {
137-
new FileRequireTransform({source: `module.exports.a = require('a')`, didFindRequire: (mod) => true}).apply()
138-
})
139-
})
140-
141126
test('requires that appear in a closure wrapper defined in the top-level scope (e.g. CoffeeScript)', () => {
142127
const source = dedent`
143128
(function () {

0 commit comments

Comments
 (0)