Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juli1 committed Dec 25, 2024
1 parent 017d20f commit a3389c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/sbom/__tests__/payload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ describe('generation of payload', () => {
expect(payload?.commit.branch).toStrictEqual(expect.any(String))
expect(payload?.repository.url).toContain('github.com')
expect(payload?.repository.url).toContain('DataDog/datadog-ci')
expect(payload?.dependencies.length).toBe(2)
expect(payload?.dependencies).toHaveLength(2)
expect(payload?.dependencies[0].name).toBe('Flask')
expect(payload?.dependencies[0].version).toBe('3.0.0')
expect(payload?.dependencies[0].licenses.length).toBe(1)
expect(payload?.dependencies[0].licenses).toHaveLength(0)
expect(payload?.dependencies[0].language).toBe(DependencyLanguage.PYTHON)
expect(payload?.dependencies[1].name).toBe('requests')
expect(payload?.dependencies[1].version).toBe('2.31.0')
expect(payload?.dependencies[1].licenses.length).toBe(1)
expect(payload?.dependencies[1].licenses).toHaveLength(0)
expect(payload?.dependencies[1].language).toBe(DependencyLanguage.PYTHON)
})

Expand Down

0 comments on commit a3389c0

Please sign in to comment.