Skip to content

Commit 9fcff40

Browse files
committed
test(ai): Upgrade mock responses to v14
1 parent a058309 commit 9fcff40

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/ai/src/requests/stream-reader.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ describe('processStream', () => {
102102
expect(response.text()).to.not.be.empty;
103103
}
104104
const aggregatedResponse = await result.response;
105-
expect(aggregatedResponse.text()).to.include('**Cats:**');
106-
expect(aggregatedResponse.text()).to.include('to their owners.');
105+
expect(aggregatedResponse.text()).to.include('Okay');
106+
expect(aggregatedResponse.text()).to.include('brewing delicious coffee');
107107
});
108108
it('streaming response - long - big chunk', async () => {
109109
const fakeResponse = getMockResponseStreaming(
@@ -116,8 +116,8 @@ describe('processStream', () => {
116116
expect(response.text()).to.not.be.empty;
117117
}
118118
const aggregatedResponse = await result.response;
119-
expect(aggregatedResponse.text()).to.include('**Cats:**');
120-
expect(aggregatedResponse.text()).to.include('to their owners.');
119+
expect(aggregatedResponse.text()).to.include('Okay');
120+
expect(aggregatedResponse.text()).to.include('brewing delicious coffee');
121121
});
122122
it('streaming response - utf8', async () => {
123123
const fakeResponse = getMockResponseStreaming(

scripts/update_vertexai_responses.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# This script replaces mock response files for Vertex AI unit tests with a fresh
1818
# clone of the shared repository of Vertex AI test data.
1919

20-
RESPONSES_VERSION='v11.*' # The major version of mock responses to use
20+
RESPONSES_VERSION='v14.*' # The major version of mock responses to use
2121
REPO_NAME="vertexai-sdk-test-data"
2222
REPO_LINK="https://github.com/FirebaseExtended/$REPO_NAME.git"
2323

0 commit comments

Comments
 (0)