Add tests for duplicate inputs and event payloads

This commit is contained in:
Beth Brennan
2023-01-09 15:18:40 -05:00
parent 280fdf0b12
commit e0bf6df6f9
2 changed files with 13 additions and 7 deletions
@@ -352,6 +352,9 @@ on:
type: string type: string
workflow_call: workflow_call:
inputs: inputs:
name:
type: string
default: value
third-name: third-name:
type: boolean type: boolean
jobs: jobs:
@@ -410,6 +413,9 @@ jobs:
type: string type: string
workflow_call: workflow_call:
inputs: inputs:
name:
type: string
default: value
third-name: third-name:
type: boolean type: boolean
jobs: jobs:
@@ -457,7 +463,7 @@ jobs:
const result = await complete(...getPositionFromCursor(input), undefined, undefined); 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 () => { it("includes event payload", async () => {
+6 -6
View File
@@ -685,9 +685,9 @@
"dev": true "dev": true
}, },
"node_modules/@github/actions-expressions": { "node_modules/@github/actions-expressions": {
"version": "0.0.8", "version": "0.0.10",
"resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.8/055f455fcb0ed907f52c349b9385728aeed38f9a", "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.10/42b733182e71f951888b09cedad1f8f310602b3a",
"integrity": "sha512-SPuGfnjgKAbMzJNCk4sZPAK2bxHlRXDJCk6vrwIi9VJL16Eh1YyiyM4fU9kV5EXEE5AV9aPFlZAPXu6t0mmBNw==", "integrity": "sha512-Ecwi6WQn7mgxQSO45zKqX1N11Is5U0+xIGNASt+oMS8pJTRtP2Utq4wSkUA3LJPMtl4iMEidoEjfTDH9OR4w8g==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">= 16" "node": ">= 16"
@@ -13526,9 +13526,9 @@
"dev": true "dev": true
}, },
"@github/actions-expressions": { "@github/actions-expressions": {
"version": "0.0.8", "version": "0.0.10",
"resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.8/055f455fcb0ed907f52c349b9385728aeed38f9a", "resolved": "https://npm.pkg.github.com/download/@github/actions-expressions/0.0.10/42b733182e71f951888b09cedad1f8f310602b3a",
"integrity": "sha512-SPuGfnjgKAbMzJNCk4sZPAK2bxHlRXDJCk6vrwIi9VJL16Eh1YyiyM4fU9kV5EXEE5AV9aPFlZAPXu6t0mmBNw==" "integrity": "sha512-Ecwi6WQn7mgxQSO45zKqX1N11Is5U0+xIGNASt+oMS8pJTRtP2Utq4wSkUA3LJPMtl4iMEidoEjfTDH9OR4w8g=="
}, },
"@github/actions-languageserver": { "@github/actions-languageserver": {
"version": "file:actions-languageserver", "version": "file:actions-languageserver",