Skip to content

Commit 68783db

Browse files
committed
Fix getAiResponseServer path ref
1 parent bfcf686 commit 68783db

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

test/versioned/langchain-aws/runnables-streaming.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
const test = require('node:test')
99
const assert = require('node:assert')
10-
const path = require('node:path')
1110

1211
const { removeModules } = require('../../lib/cache-buster')
1312
const { match } = require('../../lib/custom-assertions')
@@ -27,7 +26,7 @@ const config = {
2726
}
2827
}
2928
}
30-
const createAiResponseServer = getAiResponseServer(path.join(__dirname, './'))
29+
const createAiResponseServer = getAiResponseServer(__dirname)
3130

3231
async function beforeEach({ enabled, ctx }) {
3332
ctx.nr = {}

test/versioned/langchain-aws/runnables.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'use strict'
77

88
const test = require('node:test')
9-
const path = require('node:path')
109

1110
const { removeModules } = require('../../lib/cache-buster')
1211
const { runRunnablesTests } = require('../langchain/runnables')
@@ -18,7 +17,7 @@ const config = {
1817
enabled: true
1918
}
2019
}
21-
const createAiResponseServer = getAiResponseServer(path.join(__dirname, './'))
20+
const createAiResponseServer = getAiResponseServer(__dirname)
2221

2322
test.beforeEach(async (ctx) => {
2423
ctx.nr = {}

test/versioned/langchain-aws/vectorstore.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'use strict'
77

88
const test = require('node:test')
9-
const path = require('node:path')
109

1110
const { removeModules } = require('../../lib/cache-buster')
1211
const { runVectorstoreTests } = require('../langchain/vectorstore')
@@ -20,7 +19,7 @@ const config = {
2019
enabled: true
2120
}
2221
}
23-
const createAiResponseServer = getAiResponseServer(path.join(__dirname, './'))
22+
const createAiResponseServer = getAiResponseServer(__dirname)
2423

2524
test.beforeEach(async (ctx) => {
2625
ctx.nr = {}

0 commit comments

Comments
 (0)