Combine methods

This commit is contained in:
Jacob Wallraff
2023-03-06 15:16:26 -08:00
parent 0001dd045c
commit b272ab29be
16 changed files with 42 additions and 70 deletions
+2 -3
View File
@@ -3,7 +3,7 @@ import {StringToken} from "@github/actions-workflow-parser/templates/tokens/stri
import {DescriptionProvider, hover, HoverConfig} from "./hover";
import {getPositionFromCursor} from "./test-utils/cursor-position";
import {testFileProvider} from "./test-utils/test-file-provider";
import {clearParsedCache, clearWorkflowTemplateCache} from "./utils/workflow-cache";
import {clearCache} from "./utils/workflow-cache";
export function testHoverConfig(tokenValue: string, tokenKey: string, description?: string) {
return {
@@ -24,8 +24,7 @@ export function testHoverConfig(tokenValue: string, tokenKey: string, descriptio
}
beforeEach(() => {
clearWorkflowTemplateCache();
clearParsedCache();
clearCache();
});
describe("hover", () => {