From bc78bf48b13cc5a25ac65858d72ddf4d111dd109 Mon Sep 17 00:00:00 2001 From: Jason Berry Date: Wed, 2 Mar 2022 18:34:37 +1100 Subject: [PATCH] fix: replace hardcoded user-agent string in test --- test/index.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/index.test.ts b/test/index.test.ts index 2d8c30b..935b81e 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -6,6 +6,7 @@ import { SearchResponseProto, setItem, } from "../src/index"; +import { USER_AGENT } from "../src/user-agent"; const client = new Client("test", "test", "test.com"); const setItemMock = jest.spyOn(Object.getPrototypeOf(localStorage), "setItem"); @@ -608,7 +609,7 @@ describe("Pipeline", () => { metadata: { project: ["test"], collection: ["test"], - "user-agent": ["sajari-sdk-js/2.9.0"], + "user-agent": [USER_AGENT], }, request: { pipeline: {