@@ -46,7 +46,7 @@ Clipper.getCachedValue = (key: string) => {
46
46
QUnit . module ( "ratingsPanel" , {
47
47
beforeEach : ( ) => {
48
48
Clipper . logger = new StubSessionLogger ( ) ;
49
- Settings . setSettingsJsonForTesting ( ) ;
49
+ Settings . setSettingsJsonForTesting ( { } ) ;
50
50
51
51
mockStorage = { } ;
52
52
mockStorageCache = { } ;
@@ -95,8 +95,6 @@ test("'Positive' click at RatingsPromptStage.Init goes to RatingsPromptStage.Rat
95
95
test ( "'Positive' click at RatingsPromptStage.Init goes to RatingsPromptStage.End when rate url does not exist" , ( assert : QUnitAssert ) => {
96
96
let done = assert . async ( ) ;
97
97
98
- Settings . setSettingsJsonForTesting ( { } ) ;
99
-
100
98
let clipperState = HelperFunctions . getMockClipperState ( ) ;
101
99
clipperState . showRatingsPrompt = new SmartValue < boolean > ( true ) ;
102
100
@@ -151,8 +149,6 @@ test("'Negative' click at RatingsPromptStage.Init without a prior bad rating goe
151
149
test ( "'Negative' click at RatingsPromptStage.Init without a prior bad rating goes to RatingsPromptStage.End when feedback url does not exist (and doNotPromptRatings === undefined)" , ( assert : QUnitAssert ) => {
152
150
let done = assert . async ( ) ;
153
151
154
- Settings . setSettingsJsonForTesting ( { } ) ;
155
-
156
152
Clipper . storeValue ( ClipperStorageKeys . lastSeenVersion , "3.1.0" ) ;
157
153
158
154
let clipperState = HelperFunctions . getMockClipperState ( ) ;
@@ -210,8 +206,6 @@ test("'Negative' click at RatingsPromptStage.Init with a prior bad rating sets d
210
206
test ( "'Negative' click at RatingsPromptStage.Init with a prior bad rating sets doNotPromptRatings to 'true' (feedback url does not exist)" , ( assert : QUnitAssert ) => {
211
207
let done = assert . async ( ) ;
212
208
213
- Settings . setSettingsJsonForTesting ( { } ) ;
214
-
215
209
Clipper . storeValue ( ClipperStorageKeys . lastBadRatingDate , ( Date . now ( ) - Constants . Settings . minTimeBetweenBadRatings ) . toString ( ) ) ;
216
210
Clipper . storeValue ( ClipperStorageKeys . lastSeenVersion , "3.1.0" ) ;
217
211
@@ -262,8 +256,6 @@ test("'Rate' click at RatingsPromptStage.Rate goes to RatingsPromptStage.End whe
262
256
} ) ;
263
257
264
258
test ( "'Rate' click at RatingsPromptStage.Rate not available when rate url does not exist (unexpected scenario)" , ( ) => {
265
- Settings . setSettingsJsonForTesting ( { } ) ;
266
-
267
259
let clipperState = HelperFunctions . getMockClipperState ( ) ;
268
260
clipperState . showRatingsPrompt = new SmartValue < boolean > ( true ) ;
269
261
@@ -308,8 +300,6 @@ test("'No Thanks' click at RatingsPromptStage.Rate goes to RatingsPromptStage.No
308
300
} ) ;
309
301
310
302
test ( "'No Thanks' click at RatingsPromptStage.Rate not available when rate url does not exist (unexpected scenario)" , ( ) => {
311
- Settings . setSettingsJsonForTesting ( { } ) ;
312
-
313
303
let clipperState = HelperFunctions . getMockClipperState ( ) ;
314
304
clipperState . showRatingsPrompt = new SmartValue < boolean > ( true ) ;
315
305
@@ -356,8 +346,6 @@ test("'Feedback' click at RatingsPromptStage.Feedback goes to RatingsPromptStage
356
346
} ) ;
357
347
358
348
test ( "'Feedback' click at RatingsPromptStage.Feedback not available when feedback url does not exist (unexpected scenario)" , ( ) => {
359
- Settings . setSettingsJsonForTesting ( { } ) ;
360
-
361
349
Clipper . storeValue ( ClipperStorageKeys . lastSeenVersion , "3.1.0" ) ;
362
350
363
351
let clipperState = HelperFunctions . getMockClipperState ( ) ;
@@ -406,8 +394,6 @@ test("'No Thanks' click at RatingsPromptStage.Feedback goes to RatingsPromptStag
406
394
} ) ;
407
395
408
396
test ( "'No Thanks' click at RatingsPromptStage.Feedback not available when feedback url does not exist (unexpected scenario)" , ( ) => {
409
- Settings . setSettingsJsonForTesting ( { } ) ;
410
-
411
397
Clipper . storeValue ( ClipperStorageKeys . lastSeenVersion , "3.1.0" ) ;
412
398
413
399
let clipperState = HelperFunctions . getMockClipperState ( ) ;
0 commit comments