Lint tests
This commit is contained in:
parent
2911b195f4
commit
c733448a02
2 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -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`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue