Skip to content

Commit

Permalink
fix: npm lints + test
Browse files Browse the repository at this point in the history
src/test/suite/index.ts(16,5): error TS2349: This expression is not callable.
  Type 'typeof import("/home/runner/work/typos-vscode/typos-vscode/node_modules/glob/dist/mjs/index")' has no call signatures.
src/test/suite/index.ts(16,48): error TS7006: Parameter 'err' implicitly has an 'any' type.
src/test/suite/index.ts(16,53): error TS7006: Parameter 'files' implicitly has an 'any' type.
src/test/suite/index.ts(22,22): error TS7006: Parameter 'f' implicitly has an 'any' type.
  • Loading branch information
tekumara committed Apr 30, 2023
1 parent fb0052a commit 77a832a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
.vscode-test
out
target
CHANGELOG.md
17 changes: 1 addition & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,7 @@

### Features

* add diagnostics ([a69923e](https://github.com/tekumara/typos-vscode/commit/a69923ed20d2a563c8464faa4041fee59259c594))
* add did_change ([c8f3fa1](https://github.com/tekumara/typos-vscode/commit/c8f3fa1176e60f1d8bdbfda8d5366c2fcd540e99))
* add did_close ([5ceb15a](https://github.com/tekumara/typos-vscode/commit/5ceb15aa128e0995d29737a8f4ba3ae33fb31df4))
* add quick fix ([6bc34d8](https://github.com/tekumara/typos-vscode/commit/6bc34d8d678f7f932d0215b782bab432519e4cc6))
* better error handling + loglevel ([42b36d1](https://github.com/tekumara/typos-vscode/commit/42b36d1cd55cd00b882babacf8c915eefd37f2b9))
* hello world - initialize with test ([26b91bc](https://github.com/tekumara/typos-vscode/commit/26b91bc01fd1dd809f9758f1428d7be7b01cdab0))
* restart command + restart when config changes ([22d9eba](https://github.com/tekumara/typos-vscode/commit/22d9eba7b3d7eeb50c00e568b221df5adbd94580))
* spellcheck untitled docs ([fbcba05](https://github.com/tekumara/typos-vscode/commit/fbcba05b2374bfa2e5d56f3f3ba604b96b8a0a80))
* support bundled binary ([f980b47](https://github.com/tekumara/typos-vscode/commit/f980b4722e6e79d1bc66b1f505c168746a55dd11))


### Bug Fixes

* corrections larger than the misspelling ([27f53ef](https://github.com/tekumara/typos-vscode/commit/27f53efe694fe6bdb3576970f352fb28807d9005))
* suppress code action warning ([cc3dbc0](https://github.com/tekumara/typos-vscode/commit/cc3dbc051bc3cdf8af9cd9ac06abcaad93259c24))
* trace server ([1f993a6](https://github.com/tekumara/typos-vscode/commit/1f993a6ea7e7543fe7a4e0a6e921491c931df175))
* Initial release with diagnostics and quick fixes


### Miscellaneous Chores
Expand Down
8 changes: 2 additions & 6 deletions src/test/suite/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import { glob } from "glob";

export function run(): Promise<void> {
// Create the mocha test
Expand All @@ -13,11 +13,7 @@ export function run(): Promise<void> {
const testsRoot = path.resolve(__dirname, "..");

return new Promise((c, e) => {
glob("**/**.test.js", { cwd: testsRoot }, (err, files) => {
if (err) {
return e(err);
}

glob("**/**.test.js", { cwd: testsRoot }).then((files) => {
// Add files to the test suite
files.forEach((f) => mocha.addFile(path.resolve(testsRoot, f)));

Expand Down

0 comments on commit 77a832a

Please sign in to comment.