You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* We will show the ratings prompt if ALL of the below applies:
119
94
* * Ratings prompt is enabled for the ClientType/ClipperType
120
-
* * If StorageKeys.doNotPromptRatings is not "true"
121
-
* * If RatingsHelper.badRatingTimingDelayIsOver(...) returns true when provided StorageKeys.lastBadRatingDate
122
-
* * If RatingsHelper.badRatingVersionDelayIsOver(...) returns true when provided StorageKeys.lastBadRatingVersion and StorageKeys.lastSeenVersion
123
-
* * If RatingsHelper.clipSuccessDelayIsOver(...) returns true when provided StorageKeys.numClipSuccess
95
+
* * If ClipperStorageKeys.doNotPromptRatings is not "true"
96
+
* * If RatingsHelper.badRatingTimingDelayIsOver(...) returns true when provided ClipperStorageKeys.lastBadRatingDate
97
+
* * If RatingsHelper.badRatingVersionDelayIsOver(...) returns true when provided ClipperStorageKeys.lastBadRatingVersion and ClipperStorageKeys.lastSeenVersion
98
+
* * If RatingsHelper.clipSuccessDelayIsOver(...) returns true when provided ClipperStorageKeys.numClipSuccess
strictEqual(badRateDateAsStr,badRatingDateToSet,"bad rating date is incorrect");
397
-
strictEqual(badRateVersionAsStr,badRatingVersionToSet,"bad rating version is incorrect");
398
-
done();
399
-
});
400
-
});
401
377
});
402
378
403
-
test("setLastBadRating sets lastBadRatingDate in storage and returns false when lastBadRatingDate is a number out of date range",(assert: QUnitAssert)=>{
404
-
letdone=assert.async();
405
-
379
+
test("badRatingAlreadyOccurred returns false when lastBadRatingDate is a number out of date range",()=>{
0 commit comments