fix: lint and tests
This commit is contained in:
parent
b6cc868eed
commit
3adcac22bb
2 changed files with 6 additions and 4 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import { describe, it, expect } from "vitest";
|
||||
import { pathToUri, uriToPath, slugToUri, uriToSlug } from "./uriUtils.js";
|
||||
import { join, resolve, normalize } from "path";
|
||||
import { platform } from "os";
|
||||
import { resolve, normalize } from "path";
|
||||
|
||||
import { describe, it, expect } from "vitest";
|
||||
|
||||
import { pathToUri, uriToPath, slugToUri, uriToSlug } from "./uriUtils.js";
|
||||
|
||||
describe("uriUtils", () => {
|
||||
describe("pathToUri", () => {
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ export function uriToPath(uri: string): string | null {
|
|||
}
|
||||
try {
|
||||
return fileURLToPath(uri);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue