Lint tests

This commit is contained in:
Andras Schmelczer 2025-01-03 14:44:54 +00:00
commit c733448a02
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ export default tseslint.config({
"unused-imports": unusedImports, "unused-imports": unusedImports,
}, },
extends: [eslint.configs.recommended, tseslint.configs.all], extends: [eslint.configs.recommended, tseslint.configs.all],
ignores: ["**/types.ts"], ignores: ["**/types.ts", "**/*.test.ts"],
rules: { rules: {
"no-unused-vars": "off", "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off",

View file

@ -34,7 +34,7 @@ describe("Document Lock Operations", () => {
}); });
test("should throw an error when unlocking a document that is not locked", () => { test("should throw an error when unlocking a document that is not locked", () => {
expect(() => unlockDocument(testPath)).toThrow( expect(() => { unlockDocument(testPath); }).toThrow(
`Document ${testPath} is not locked, cannot unlock` `Document ${testPath} is not locked, cannot unlock`
); );
}); });