mirror of
https://github.com/S2-/gitlit
synced 2025-08-04 13:10:09 +02:00
update dependencies
This commit is contained in:
16
node_modules/resolve/test/resolver_sync.js
generated
vendored
16
node_modules/resolve/test/resolver_sync.js
generated
vendored
@@ -15,10 +15,26 @@ test('foo', function (t) {
|
||||
path.join(dir, 'foo.js')
|
||||
);
|
||||
|
||||
t.equal(
|
||||
resolve.sync('./foo.js', { basedir: dir, filename: path.join(dir, 'bar.js') }),
|
||||
path.join(dir, 'foo.js')
|
||||
);
|
||||
|
||||
t.throws(function () {
|
||||
resolve.sync('foo', { basedir: dir });
|
||||
});
|
||||
|
||||
// Test that filename is reported as the "from" value when passed.
|
||||
t.throws(
|
||||
function () {
|
||||
resolve.sync('foo', { basedir: dir, filename: path.join(dir, 'bar.js') });
|
||||
},
|
||||
{
|
||||
name: 'Error',
|
||||
message: "Cannot find module 'foo' from '" + path.join(dir, 'bar.js') + "'"
|
||||
}
|
||||
);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user