Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Apr 17, 2024
1 parent 100886a commit 21f04c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/Typesense/AnalyticsRules.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe("AnalyticsRules", function () {
.onPut(
apiCall.uriFor(
"/analytics/rules/search_suggestions",
typesense.configuration.nodes[0]
typesense.configuration.nodes[0],
),
{
type: "popular_queries",
Expand All @@ -51,7 +51,7 @@ describe("AnalyticsRules", function () {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
}
},
)
.reply(201, "{}", { "content-type": "application/json" });

Expand All @@ -60,6 +60,7 @@ describe("AnalyticsRules", function () {
params: {
source: { collections: ["products"] },
destination: { collection: "products_top_queries" },
expand_query: true,
limit: 100,
},
});
Expand All @@ -78,7 +79,7 @@ describe("AnalyticsRules", function () {
Accept: "application/json, text/plain, */*",
"Content-Type": "application/json",
"X-TYPESENSE-API-KEY": typesense.configuration.apiKey,
}
},
)
.reply(200, "[]", { "content-type": "application/json" });

Expand Down

0 comments on commit 21f04c8

Please sign in to comment.