PR feedback: object type, test
This commit is contained in:
@@ -207,19 +207,19 @@ jobs:
|
||||
|
||||
expect(result).toEqual([
|
||||
{
|
||||
"message": "Context access might be invalid: foo",
|
||||
"range": {
|
||||
"end": {
|
||||
"character": 41,
|
||||
"line": 5,
|
||||
},
|
||||
"start": {
|
||||
"character": 25,
|
||||
"line": 5,
|
||||
message: "Context access might be invalid: foo",
|
||||
range: {
|
||||
end: {
|
||||
character: 41,
|
||||
line: 5
|
||||
},
|
||||
start: {
|
||||
character: 25,
|
||||
line: 5
|
||||
}
|
||||
},
|
||||
"severity": 2,
|
||||
},
|
||||
severity: 2
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -1133,13 +1133,14 @@ jobs:
|
||||
|
||||
it("validates event payload", async () => {
|
||||
const input = `
|
||||
on: push
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo \${{ github.event.forced }}
|
||||
- run: echo \${{ github.event.pull_request }}
|
||||
- run: echo \${{ github.event.schedule }}
|
||||
`;
|
||||
|
||||
@@ -1151,11 +1152,11 @@ jobs:
|
||||
range: {
|
||||
end: {
|
||||
character: 46,
|
||||
line: 8
|
||||
line: 9
|
||||
},
|
||||
start: {
|
||||
character: 18,
|
||||
line: 8
|
||||
line: 9
|
||||
}
|
||||
},
|
||||
severity: DiagnosticSeverity.Warning
|
||||
|
||||
Reference in New Issue
Block a user