Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxct committed May 24, 2024
1 parent 0dd4b13 commit 25c6433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/datadog-plugin-openai/test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe('Plugin', () => {
})
})

if (semver.satisfies(realVersion, '>=4.0.0')) {
if (semver.intersects('>4.0.0', version)) {
it.only('makes a successful call with streaming', async () => {

Check warning on line 233 in packages/datadog-plugin-openai/test/index.spec.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected exclusive mocha test
nock('https://api.openai.com:443')
.post('/v1/completions')
Expand Down Expand Up @@ -273,7 +273,7 @@ describe('Plugin', () => {

for await (const part of stream) {
expect(part).to.have.property('choices')
expect(part.choices[0]).to.have.property('tssssssext')
expect(part.choices[0]).to.have.property('text')
}

await checkTraces
Expand Down

0 comments on commit 25c6433

Please sign in to comment.