Skip to content

Commit

Permalink
fix: replace hardcoded user-agent string in test
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonBerry committed Mar 2, 2022
1 parent 82246de commit bc78bf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit bc78bf4

Please sign in to comment.