Skip to content

Commit

Permalink
test: add no diagnostics integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Nov 13, 2023
1 parent 0fe2ccc commit c862b19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration-test/diagnostics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ suite('Diagnostics', () => {
},
])
})

test('no diagnostics', async () => {
await testDiagnostics('no_diagnostics.sksl', [])
})
})

async function testDiagnostics(name: string, expected: vscode.Diagnostic[]) {
Expand Down
4 changes: 4 additions & 0 deletions integration-test/fixtures/no_diagnostics.sksl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// kind=shader
half4 main(float2) {
return float4(1);
}

0 comments on commit c862b19

Please sign in to comment.