mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 19:45:48 +08:00
Add test
This commit is contained in:
@@ -41,7 +41,8 @@ function test_options_async() {
|
||||
return cb(null, stat.isFile());
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
preserveSymlinks: false,
|
||||
}, function(error, resolved, pkg) {
|
||||
if (error) {
|
||||
console.error(error.message);
|
||||
@@ -72,7 +73,8 @@ function test_options_sync() {
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
},
|
||||
preserveSymlinks: true,
|
||||
});
|
||||
console.log(resolved);
|
||||
resolved = resolve.sync('typescript', {
|
||||
|
||||
Reference in New Issue
Block a user