diff --git a/actions-languageservice/src/complete.expressions.test.ts b/actions-languageservice/src/complete.expressions.test.ts index 7510535..b57b520 100644 --- a/actions-languageservice/src/complete.expressions.test.ts +++ b/actions-languageservice/src/complete.expressions.test.ts @@ -352,6 +352,9 @@ on: type: string workflow_call: inputs: + name: + type: string + default: value third-name: type: boolean jobs: @@ -410,6 +413,9 @@ jobs: type: string workflow_call: inputs: + name: + type: string + default: value third-name: type: boolean jobs: @@ -457,7 +463,7 @@ jobs: const result = await complete(...getPositionFromCursor(input), undefined, undefined); - expect(result.map(x => x.label)).toContain("schedule"); + expect(result.map(x => x.label)).toEqual(["repository", "schedule", "workflow"]); }); it("includes event payload", async () => { diff --git a/package-lock.json b/package-lock.json index 9490384..54eb1b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -685,9 +685,9 @@ "dev": true }, "node_modules/@github/actions-expressions": { - "version": "0.0.8", - "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.8/055f455fcb0ed907f52c349b9385728aeed38f9a", - "integrity": "sha512-SPuGfnjgKAbMzJNCk4sZPAK2bxHlRXDJCk6vrwIi9VJL16Eh1YyiyM4fU9kV5EXEE5AV9aPFlZAPXu6t0mmBNw==", + "version": "0.0.10", + "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.10/42b733182e71f951888b09cedad1f8f310602b3a", + "integrity": "sha512-Ecwi6WQn7mgxQSO45zKqX1N11Is5U0+xIGNASt+oMS8pJTRtP2Utq4wSkUA3LJPMtl4iMEidoEjfTDH9OR4w8g==", "license": "MIT", "engines": { "node": ">= 16" @@ -13526,9 +13526,9 @@ "dev": true }, "@github/actions-expressions": { - "version": "0.0.8", - "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.8/055f455fcb0ed907f52c349b9385728aeed38f9a", - "integrity": "sha512-SPuGfnjgKAbMzJNCk4sZPAK2bxHlRXDJCk6vrwIi9VJL16Eh1YyiyM4fU9kV5EXEE5AV9aPFlZAPXu6t0mmBNw==" + "version": "0.0.10", + "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.10/42b733182e71f951888b09cedad1f8f310602b3a", + "integrity": "sha512-Ecwi6WQn7mgxQSO45zKqX1N11Is5U0+xIGNASt+oMS8pJTRtP2Utq4wSkUA3LJPMtl4iMEidoEjfTDH9OR4w8g==" }, "@github/actions-languageserver": { "version": "file:actions-languageserver",