mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Add tests
This commit is contained in:
6 files changed
+476
-56
No files matched your search
@@ -52,7 +52,11 @@ export function integer(value: number) {
|
||||
}
|
||||
}
|
||||
|
||||
/** Value must be a valid file path, it does not need to exist */
|
||||
/**
|
||||
* Value must be a valid file path, it does not need to exist
|
||||
* On posix this will only error for non string values, which isn't very useful
|
||||
* However, this could be expanded in the future to check system OS
|
||||
*/
|
||||
export function filePath(value: string) {
|
||||
try {
|
||||
path.resolve(value);
|
||||
|
||||
Reference in new issue
Block a user