@@ -202,3 +202,11 @@ window.spyOnMethod = function(Class, methodName, dontCallThrough) {
return spy
}
+
+// wraps an existing function in a spy, calling through to the function
+window.spyCall = function(func) {
+ func = func || function() {}
+ const obj = { func }
+ spyOn(obj, 'func').and.callThrough()
+ return obj.func
+}
@@ -148,3 +148,9 @@ export function getTimeGridSlotEls(timeDuration) {
return $()
+// TODO: discourage use
+export function getTimeGridDowEls(dayAbbrev) {
+ return $(`.fc-time-grid .fc-day.fc-${dayAbbrev}`)