Skip to content

Commit

Permalink
Fix invalid test
Browse files Browse the repository at this point in the history
Signed-off-by: worksofliam <[email protected]>
  • Loading branch information
worksofliam committed Nov 12, 2024
1 parent 0dfe2c0 commit 5ecf64c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/testing/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,13 @@ export const ContentSuite: TestSuite = {
assert.strictEqual(memberInfoB?.extension === `CPP`, true);
assert.strictEqual(memberInfoB?.text === `C++ HEADER`, true);

const memberInfoC = await content?.getMemberInfo(`QSYSINC`, `H`, `OH_NONO`);
assert.ok(!memberInfoC);
try{
await content?.getMemberInfo(`QSYSINC`, `H`, `OH_NONO`)
}
catch(error: any){
assert.ok(error instanceof Tools.SqlError);
assert.strictEqual(error.sqlstate, "38501");
}
}
},
{
Expand Down

0 comments on commit 5ecf64c

Please sign in to comment.