Skip to content

Commit 294c4b2

Browse files
committed
test(fmt): fix spelling in cache tests
1 parent d5f99c9 commit 294c4b2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/rstack/tests/fmt/runnerCache.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ test('caches unsupported parser results until final options change', async () =>
155155
});
156156
});
157157

158-
test('invalidates cached unsupported parser results when extensionless content changes', async () => {
158+
test('invalidates cached unsupported parser results when content changes without an extension', async () => {
159159
await withTempProject(async (rootPath) => {
160160
const filePath = writeProjectFile(rootPath, 'script', 'plain text\n');
161161
const cache = createCache(rootPath);

‎packages/rstack/tests/fmt/runnerWorkerPreflight.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test('does not start the worker pool when every parser result is cached as unsup
8484
});
8585
});
8686

87-
test('starts the worker pool for a path-only unsupported entry on an extensionless file', async () => {
87+
test('starts the worker pool for a path-only unsupported entry without an extension', async () => {
8888
await withTempProject(async (rootPath) => {
8989
const filePath = writeProjectFile(rootPath, 'script', 'plain text');
9090
const cachePath = path.join(rootPath, 'cache', 'fmt-v1.json');

‎packages/rstack/tests/fmt/worker.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test('returns cached states before resolving the parser', async () => {
4848
await withTempProject(async (rootPath) => {
4949
const source = 'const value=1';
5050
const filePath = writeProjectFile(rootPath, 'example.ts', source);
51-
const extensionlessPath = writeProjectFile(rootPath, 'script', source);
51+
const noExtensionPath = writeProjectFile(rootPath, 'script', source);
5252
const missingPath = path.join(rootPath, 'missing.unknown');
5353
const contentHash = sha256(source);
5454
const optionsHash = 'options';
@@ -57,8 +57,8 @@ test('returns cached states before resolving the parser', async () => {
5757
[[contentHash, optionsHash, 'clean'], filePath, false, 'unchanged'],
5858
[[contentHash, optionsHash, 'dirty'], filePath, false, 'changed'],
5959
[[contentHash, optionsHash, 'clean'], filePath, true, 'unchanged'],
60-
[[contentHash, optionsHash, 'unsupported'], extensionlessPath, false, 'unsupported'],
61-
[[contentHash, optionsHash, 'unsupported'], extensionlessPath, true, 'unsupported'],
60+
[[contentHash, optionsHash, 'unsupported'], noExtensionPath, false, 'unsupported'],
61+
[[contentHash, optionsHash, 'unsupported'], noExtensionPath, true, 'unsupported'],
6262
[[null, optionsHash, 'unsupported'], missingPath, false, 'unsupported'],
6363
[[null, optionsHash, 'unsupported'], missingPath, true, 'unsupported'],
6464
] as const) {
@@ -81,7 +81,7 @@ test('returns cached states before resolving the parser', async () => {
8181
});
8282
});
8383

84-
test('does not trust path-only unsupported entries for extensionless files', async () => {
84+
test('does not trust path-only unsupported entries for files without extensions', async () => {
8585
await withTempProject(async (rootPath) => {
8686
const filePath = writeProjectFile(rootPath, 'script', '#!/usr/bin/env node\nconst value=1');
8787

0 commit comments

Comments
 (0)