@carlonicora/nextjs-jsonapi 3.3.6 → 3.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlonicora/nextjs-jsonapi",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "description": "Next.js JSON:API client with server/client support and caching",
5
5
  "author": "Carlo Nicora",
6
6
  "license": "GPL-3.0-or-later",
@@ -61,14 +61,17 @@ describe("nextDateRange", () => {
61
61
  });
62
62
 
63
63
  it("opens a range from the empty state", () => {
64
- expect(
65
- nextDateRange({ current: undefined, computed: { from: AUG_10, to: AUG_10 }, triggerDate: AUG_10 }),
66
- ).toEqual({ from: AUG_10, to: AUG_10 });
64
+ expect(nextDateRange({ current: undefined, computed: { from: AUG_10, to: AUG_10 }, triggerDate: AUG_10 })).toEqual({
65
+ from: AUG_10,
66
+ to: AUG_10,
67
+ });
67
68
  });
68
69
 
69
70
  // react-day-picker returns undefined to DESELECT; that must survive the
70
71
  // complete-range branch rather than being turned into a new start.
71
72
  it("clears when react-day-picker deselects", () => {
72
- expect(nextDateRange({ current: { from: AUG_10, to: AUG_10 }, computed: undefined, triggerDate: AUG_10 })).toBeUndefined();
73
+ expect(
74
+ nextDateRange({ current: { from: AUG_10, to: AUG_10 }, computed: undefined, triggerDate: AUG_10 }),
75
+ ).toBeUndefined();
73
76
  });
74
77
  });