diff options
Diffstat (limited to 'test/bun.js/disabled-module.test.js')
-rw-r--r-- | test/bun.js/disabled-module.test.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/bun.js/disabled-module.test.js b/test/bun.js/disabled-module.test.js index 5eb0db898..43b08731d 100644 --- a/test/bun.js/disabled-module.test.js +++ b/test/bun.js/disabled-module.test.js @@ -1,9 +1,8 @@ -import { describe, it, expect, beforeEach, afterEach, test } from "bun:test"; +import { expect, test } from "bun:test"; test("not implemented yet module masquerades as undefined and throws an error", () => { const worker_threads = import.meta.require("worker_threads"); - expect(typeof worker_threads).toBe("object"); - expect(typeof worker_threads.foo).toBe("undefined"); - expect(() => worker_threads.foo()).toThrow("Not implemented yet in Bun :("); + expect(typeof worker_threads).toBe("undefined"); + expect(typeof worker_threads.getEnvironmentData).toBe("undefined"); }); |