forked from webpack/webpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
90 lines (68 loc) · 2.37 KB
/
index.js
File metadata and controls
90 lines (68 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
global.XMLHttpRequest = function() {};
global.XMLHttpRequest.prototype.open = function() {};
it("should provide a global Buffer constructor", function() {
expect(Buffer).toBeInstanceOf(Function);
});
it("should provide a global process shim", function () {
expect(process).toBeInstanceOf(Object);
});
it("should provide a global setImmediate shim", function () {
expect(setImmediate).toBeInstanceOf(Function);
});
it("should provide a global clearImmediate shim", function () {
expect(clearImmediate).toBeInstanceOf(Function);
});
it("should provide an assert shim", function () {
expect(require("assert")).toBeInstanceOf(Function);
});
it("should provide a util shim", function () {
expect(require("util")).toBeInstanceOf(Object);
});
it("should provide a buffer shim", function () {
expect(require("buffer")).toBeInstanceOf(Object);
});
it("should provide a crypto shim", function () {
expect(require("crypto")).toBeInstanceOf(Object);
});
it("should provide a domain shim", function () {
expect(require("domain")).toBeInstanceOf(Object);
});
it("should provide an events shim", function () {
expect(require("events")).toBeInstanceOf(Function);
});
it("should provide an http shim", function () {
expect(require("http")).toBeInstanceOf(Object);
});
it("should provide an https shim", function () {
expect(require("https")).toBeInstanceOf(Object);
});
it("should provide an os shim", function () {
expect(require("os")).toBeInstanceOf(Object);
});
it("should provide a path shim", function () {
expect(require("path")).toBeInstanceOf(Object);
});
it("should provide a punycode shim", function () {
expect(require("punycode")).toBeInstanceOf(Object);
});
it("should provide a stream shim", function () {
expect(require("stream")).toBeInstanceOf(Function);
});
it("should provide a tty shim", function () {
expect(require("tty")).toBeInstanceOf(Object);
});
it("should provide a url shim", function () {
expect(require("url")).toBeInstanceOf(Object);
});
it("should provide a util shim", function () {
expect(require("util")).toBeInstanceOf(Object);
});
it("should provide a vm shim", function () {
expect(require("vm")).toBeInstanceOf(Object);
});
it("should provide a zlib shim", function () {
expect(require("zlib")).toBeInstanceOf(Object);
});
it("should provide a shim for a path in a build-in module", function () {
expect(require("process/in.js")).toBe("in process");
});