Implemented filters for Service Requests and Actions
This commit is contained in:
@@ -72,10 +72,12 @@ test("Refresh all deduplicates clicks, clears memory before reload and preserves
|
||||
app.authSessionState.accessToken = "synthetic";
|
||||
app.preferencesState.opptyProductsCacheHours = 48;
|
||||
app.productsContentState.opptyProductsByNumber.set("A", {});
|
||||
app.productsContentState.productsLastCachedAt = 100;
|
||||
app.consumptionTrendState.consumptionTrendCache.set("A", {});
|
||||
const first = app.refreshAll.refresh("Next Quarter");
|
||||
assert.equal(app.refreshAll.refresh("Next Quarter"), first);
|
||||
assert.equal(app.productsContentState.opptyProductsByNumber.size, 0);
|
||||
assert.equal(app.productsContentState.productsLastCachedAt, 100, "keep previous update visible while refreshing");
|
||||
assert.equal(app.consumptionTrendState.consumptionTrendCache.size, 0);
|
||||
assert.deepEqual(calls, ["activities"]);
|
||||
finish();
|
||||
|
||||
Reference in New Issue
Block a user