Skip to content

Commit

Permalink
fix: Fix reading dictionary test to use path (#1938)
Browse files Browse the repository at this point in the history
* fix: fix test to use dictionary path.

* dev: update package-lock
  • Loading branch information
Jason3S committed Nov 1, 2021
1 parent dfbfddd commit fa4ea3f
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions integration-tests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/cspell-dynamic-loader/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/cspell-trie-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/package.json
Expand Up @@ -43,7 +43,7 @@
"node": ">=12.13.0"
},
"devDependencies": {
"@cspell/dict-en_us": "^2.1.2",
"@cspell/dict-en_us": "^2.1.3",
"@cspell/dict-es-es": "^2.0.2",
"@types/fs-extra": "^9.0.13",
"@types/node": "^16.11.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/src/lib/reader.test.helper.ts
Expand Up @@ -8,7 +8,7 @@ export async function readTrieFileFromConfig(configLocation: string): Promise<Tr
const json = await fs.readFile(configLocation, 'utf-8');
const config = JSON.parse(json.replace(/\/\/.*/g, ''));
const dictDef = (config && config.dictionaryDefinitions && config.dictionaryDefinitions[0]) || {};
const dictPath = dictDef.file || '';
const dictPath = path.join(dictDef.path || '', dictDef.file || '');
const pathToDict = path.join(path.dirname(configLocation), dictPath);
return readTrieFile(pathToDict);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/cspell/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test-packages/cspell-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test-packages/test-cspell-lib-webpack/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test-packages/test-cspell-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test-packages/test-cspell-tools/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions test-packages/test-cspell/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa4ea3f

Please sign in to comment.