@reactionary/examples-node 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reactionary/examples-node",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
7
- "@reactionary/core": "0.1.6",
8
- "@reactionary/provider-commercetools": "0.1.6",
9
- "@reactionary/provider-algolia": "0.1.6",
10
- "@reactionary/provider-medusa": "0.1.6"
7
+ "@reactionary/core": "0.1.8",
8
+ "@reactionary/provider-commercetools": "0.1.8",
9
+ "@reactionary/provider-algolia": "0.1.8",
10
+ "@reactionary/provider-medusa": "0.1.8"
11
11
  },
12
12
  "type": "module"
13
13
  }
@@ -102,7 +102,7 @@ describe.each([PrimaryProvider.ALGOLIA, PrimaryProvider.COMMERCETOOLS])(
102
102
 
103
103
  const initial = await client.productSearch.queryByTerm({
104
104
  search: {
105
- term: testData.searchTerm,
105
+ term: "",
106
106
  paginationOptions: {
107
107
  pageNumber: 1,
108
108
  pageSize: 2,
@@ -116,7 +116,7 @@ describe.each([PrimaryProvider.ALGOLIA, PrimaryProvider.COMMERCETOOLS])(
116
116
 
117
117
  const filtered = await client.productSearch.queryByTerm({
118
118
  search: {
119
- term: testData.searchTerm,
119
+ term: "",
120
120
  paginationOptions: {
121
121
  pageNumber: 1,
122
122
  pageSize: 2,
@@ -126,7 +126,8 @@ describe.each([PrimaryProvider.ALGOLIA, PrimaryProvider.COMMERCETOOLS])(
126
126
  },
127
127
  });
128
128
 
129
- expect(initial.totalPages).toBeGreaterThanOrEqual(filtered.totalPages);
129
+ expect(initial.totalCount).toBeGreaterThan(filtered.totalCount);
130
+ expect(filtered.totalCount).toBeGreaterThan(0);
130
131
  });
131
132
 
132
133
  it('should not return facets with no values', async () => {