mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
test: add initial testing and linting (#18)
This commit is contained in:
@@ -12,8 +12,15 @@ class FileNotFoundError extends BaseError {
|
||||
}
|
||||
|
||||
class InvalidFileError extends BaseError {
|
||||
constructor(filePath: string) {
|
||||
#baseError?: unknown;
|
||||
|
||||
constructor(filePath: string, baseError?: unknown) {
|
||||
super(`Invalid file: ${filePath}`);
|
||||
this.#baseError = baseError;
|
||||
}
|
||||
|
||||
get baseError() {
|
||||
return this.#baseError;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user