Skip to content

Commit 3228d79

Browse files
committed
fix test
1 parent 2c84306 commit 3228d79

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

playground/javascript/node/recommend.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { recommendClient } from '@algolia/recommend';
1+
import recommendClient from '@algolia/recommend';
22
import { ApiError } from '@algolia/client-common';
33

44
const appId = process.env.ALGOLIA_APPLICATION_ID || '**** APP_ID *****';
@@ -7,6 +7,9 @@ const apiKey = process.env.ALGOLIA_SEARCH_KEY || '**** SEARCH_API_KEY *****';
77
const searchIndex = process.env.SEARCH_INDEX || 'test_index';
88
const searchQuery = process.env.SEARCH_QUERY || 'test_query';
99

10+
console.log("######################")
11+
console.log({ recommendClient })
12+
1013
// Init client with appId and apiKey
1114
const client = recommendClient(appId, apiKey);
1215

tests/CTS/requests/recommend/batchRecommendRules.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"request": {
99
"path": "/1/indexes/indexName/related-products/recommend/rules/batch",
1010
"method": "POST",
11-
"body": {
12-
"rules": []
13-
}
11+
"body": {}
1412
}
1513
}
1614
]

0 commit comments

Comments
 (0)