Skip to content

Commit 5dfa032

Browse files
committed
Rename files and update proxyquire paths
1 parent 688f9de commit 5dfa032

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/net/disposable-http-server/test/test.server.js renamed to lib/node_modules/@stdlib/net/disposable-http-server/test/test.main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ tape( 'the function throws a type error if provided a callback argument which is
9090
});
9191

9292
tape( 'the function throws an error if an error is encountered while attempting to start a server', function test( t ) {
93-
var httpServer = proxyquire( './../lib/server.js', {
93+
var httpServer = proxyquire( './../lib/main.js', {
9494
'@stdlib/net/http-server': createServer,
9595
'@stdlib/utils/open-url': noop
9696
});
@@ -584,7 +584,7 @@ tape( 'the server will close any persistent connections on close', function test
584584
var opts;
585585
var flg;
586586

587-
httpServer = proxyquire( './../lib/server.js', {
587+
httpServer = proxyquire( './../lib/main.js', {
588588
'./connections_store.js': store
589589
});
590590

@@ -654,7 +654,7 @@ tape( 'if the `open` option is `true`, the function will attempt to open the con
654654
'open': true
655655
};
656656

657-
httpServer = proxyquire( './../lib/server.js', {
657+
httpServer = proxyquire( './../lib/main.js', {
658658
'@stdlib/utils/open-url': openURL
659659
});
660660

lib/node_modules/@stdlib/net/simple-http-server/test/test.server.js renamed to lib/node_modules/@stdlib/net/simple-http-server/test/test.main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ tape( 'the function throws a type error if provided more than one argument and t
117117
});
118118

119119
tape( 'the function throws an error if an error is encountered while attempting to start a server', function test( t ) {
120-
var httpServer = proxyquire( './../lib/server.js', {
120+
var httpServer = proxyquire( './../lib/main.js', {
121121
'@stdlib/net/http-server': createServer,
122122
'@stdlib/utils/open-url': noop
123123
});
@@ -139,7 +139,7 @@ tape( 'the function throws an error if an error is encountered while attempting
139139
tape( 'both the options and callback arguments are optional', function test( t ) {
140140
var httpServer;
141141

142-
httpServer = proxyquire( './../lib/server.js', {
142+
httpServer = proxyquire( './../lib/main.js', {
143143
'@stdlib/net/http-server': createServer,
144144
'@stdlib/utils/open-url': noop
145145
});
@@ -167,7 +167,7 @@ tape( 'both the options and callback arguments are optional', function test( t )
167167
tape( 'the callback argument is optional (options)', function test( t ) {
168168
var httpServer;
169169

170-
httpServer = proxyquire( './../lib/server.js', {
170+
httpServer = proxyquire( './../lib/main.js', {
171171
'@stdlib/net/http-server': createServer,
172172
'@stdlib/utils/open-url': noop
173173
});
@@ -197,7 +197,7 @@ tape( 'the callback argument is optional (options)', function test( t ) {
197197
tape( 'the options argument is optional (callback)', function test( t ) {
198198
var httpServer;
199199

200-
httpServer = proxyquire( './../lib/server.js', {
200+
httpServer = proxyquire( './../lib/main.js', {
201201
'@stdlib/utils/open-url': noop
202202
});
203203

@@ -222,7 +222,7 @@ tape( 'if provided a `dir` option from which to serve files, the function resolv
222222
var dir;
223223
var flg;
224224

225-
httpServer = proxyquire( './../lib/server.js', {
225+
httpServer = proxyquire( './../lib/main.js', {
226226
'@stdlib/net/http-server': createServer,
227227
'@stdlib/utils/open-url': noop,
228228
'./request_listener.js': requestListener
@@ -273,7 +273,7 @@ tape( 'if the `open` option is `true`, the function will attempt to open a user\
273273
'open': true
274274
};
275275

276-
httpServer = proxyquire( './../lib/server.js', {
276+
httpServer = proxyquire( './../lib/main.js', {
277277
'@stdlib/utils/open-url': openURL
278278
});
279279

0 commit comments

Comments
 (0)