From 68176a37341cc363171fe4e95ff6842bf7b8d33c Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Sun, 14 May 2023 19:21:59 +0800 Subject: [PATCH] feat: modify test --- sdks/nodejs-client/tests/client.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdks/nodejs-client/tests/client.test.js b/sdks/nodejs-client/tests/client.test.js index f53637419c..264630dd35 100644 --- a/sdks/nodejs-client/tests/client.test.js +++ b/sdks/nodejs-client/tests/client.test.js @@ -1,4 +1,4 @@ -import { LangGeniusClient, BASE_URL } from ".."; +import { LangGeniusClient, BASE_URL, routes } from ".."; import axios from 'axios' @@ -20,7 +20,7 @@ describe('Client', () => { }) }); -describe('sendRequest', () => { +describe('Send Requests', () => { let langGeniusClient beforeEach(() => { @@ -31,9 +31,9 @@ describe('sendRequest', () => { jest.resetAllMocks() }) - it('should make a successful request to the API', async () => { + it('should make a successful request to the application parameter', async () => { const method = 'GET' - const endpoint = '/test-endpoint' + const endpoint = routes.application.url const expectedResponse = { data: 'response' } axios.mockResolvedValue(expectedResponse)