Skip to content

Commit 913baf3

Browse files
committed
chore: fixes
1 parent 7954730 commit 913baf3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- run: npm run format:check
6565

6666
type-check-tests:
67-
name: Type Check Tests
67+
name: Type-Check
6868
runs-on: ubuntu-latest
6969
steps:
7070
- uses: actions/checkout@v4

src/cdx-xml-to-json.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ describe('CycloneDX XML to JSON Converter', () => {
2626
assert(Array.isArray(result.metadata?.tools));
2727
assert(result.metadata?.tools.length >= 2);
2828

29-
const firstTool = result.metadata?.tools[0]!;
30-
assert.equal(firstTool.vendor, '@cyclonedx');
31-
assert.equal(firstTool.name, 'cyclonedx-library');
29+
const firstTool = result.metadata?.tools[0];
30+
assert.equal(firstTool?.vendor, '@cyclonedx');
31+
assert.equal(firstTool?.name, 'cyclonedx-library');
3232

3333
// Component validation
3434
const component = result.metadata.component;

0 commit comments

Comments
 (0)