We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc17a26 commit c975c66Copy full SHA for c975c66
test/index.js
@@ -184,6 +184,23 @@ function wrap(server, middleware) {
184
});
185
186
187
+ describe('self package with base', function() {
188
+
189
+ before(function () {
190
+ app = server();
191
+ app.use(middleware(join(fixtures, 'parser'), {
192
+ base: 'http://a.com/base/'
193
+ }));
194
+ });
195
196
+ it('should match /base/index.js -> /index.js, wrap', function(done) {
197
+ request(app.listen())
198
+ .get('/base/index.js')
199
+ .expect(util.define('index', 'var b = require("b/0.1.0/index.js");\nconsole.log(\'a\');\n'))
200
+ .expect(200, done);
201
202
203
204
describe('dependent package', function() {
205
206
before(function() {
0 commit comments