@carlonicora/nextjs-jsonapi 3.3.6 → 3.3.7
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
|
@@ -61,14 +61,17 @@ describe("nextDateRange", () => {
|
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
it("opens a range from the empty state", () => {
|
|
64
|
-
expect(
|
|
65
|
-
|
|
66
|
-
|
|
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(
|
|
73
|
+
expect(
|
|
74
|
+
nextDateRange({ current: { from: AUG_10, to: AUG_10 }, computed: undefined, triggerDate: AUG_10 }),
|
|
75
|
+
).toBeUndefined();
|
|
73
76
|
});
|
|
74
77
|
});
|