@@ -100,8 +100,8 @@ Tinytest.add('ClientStorage - remove() - non existent value', function (test) {
100
100
101
101
Tinytest . add ( 'ClientStorage - empty() - ALL' , function ( test ) {
102
102
ClientStorage . empty ( ) ;
103
- var setResOne = ClientStorage . set ( 'teststorageOne' , 'One' ) ;
104
- var setResTwo = ClientStorage . set ( 'teststorageTwo' , 'Two' ) ;
103
+ ClientStorage . set ( 'teststorageOne' , 'One' ) ;
104
+ ClientStorage . set ( 'teststorageTwo' , 'Two' ) ;
105
105
var removeRes = ClientStorage . empty ( ) ;
106
106
107
107
test . isTrue ( removeRes ) ;
@@ -113,8 +113,8 @@ Tinytest.add('ClientStorage - empty() - ALL', function (test) {
113
113
114
114
Tinytest . add ( 'ClientStorage - keys() / has() / remove() - String' , function ( test ) {
115
115
ClientStorage . empty ( ) ;
116
- var setResOne = ClientStorage . set ( 'teststorageOne' , 'One' ) ;
117
- var setResTwo = ClientStorage . set ( 'teststorageTwo' , 'Two' ) ;
116
+ ClientStorage . set ( 'teststorageOne' , 'One' ) ;
117
+ ClientStorage . set ( 'teststorageTwo' , 'Two' ) ;
118
118
119
119
test . isTrue ( ! ! ~ ClientStorage . keys ( ) . indexOf ( 'teststorageOne' ) ) ;
120
120
test . isTrue ( ! ! ~ ClientStorage . keys ( ) . indexOf ( 'teststorageTwo' ) ) ;
@@ -235,8 +235,8 @@ Tinytest.add('ClientStorage - Cookies - remove() - non existent value', function
235
235
236
236
Tinytest . add ( 'ClientStorage - Cookies - empty() - ALL' , function ( test ) {
237
237
ClientStorageCookies . empty ( ) ;
238
- var setResOne = ClientStorageCookies . set ( 'teststorageOne' , 'One' ) ;
239
- var setResTwo = ClientStorageCookies . set ( 'teststorageTwo' , 'Two' ) ;
238
+ ClientStorageCookies . set ( 'teststorageOne' , 'One' ) ;
239
+ ClientStorageCookies . set ( 'teststorageTwo' , 'Two' ) ;
240
240
var removeRes = ClientStorageCookies . empty ( ) ;
241
241
242
242
test . isTrue ( removeRes ) ;
@@ -248,8 +248,8 @@ Tinytest.add('ClientStorage - Cookies - empty() - ALL', function (test) {
248
248
249
249
Tinytest . add ( 'ClientStorage - Cookies - keys() / has() / remove() - String' , function ( test ) {
250
250
ClientStorageCookies . empty ( ) ;
251
- var setResOne = ClientStorageCookies . set ( 'teststorageOne' , 'One' ) ;
252
- var setResTwo = ClientStorageCookies . set ( 'teststorageTwo' , 'Two' ) ;
251
+ ClientStorageCookies . set ( 'teststorageOne' , 'One' ) ;
252
+ ClientStorageCookies . set ( 'teststorageTwo' , 'Two' ) ;
253
253
254
254
test . isTrue ( ! ! ~ ClientStorageCookies . keys ( ) . indexOf ( 'teststorageOne' ) ) ;
255
255
test . isTrue ( ! ! ~ ClientStorageCookies . keys ( ) . indexOf ( 'teststorageTwo' ) ) ;
@@ -270,7 +270,7 @@ Tinytest.add('ClientStorage - Cookies - keys() / has() / remove() - String', fun
270
270
//////////////
271
271
var ClientStorageLS = new clientStorage ( 'localStorage' ) ;
272
272
273
- Tinytest . add ( 'ClientStorage - LocalStorage - set() / get() / has() - Void (localStorage can\'t store undefined)' , function ( test ) {
273
+ Tinytest . add ( 'ClientStorage - LocalStorage - set() / get() / has() - Void (Error is expected as localStorage can\'t store undefined)' , function ( test ) {
274
274
ClientStorageLS . empty ( ) ;
275
275
var testVal = void 0 ;
276
276
var setRes = ClientStorageLS . set ( 'Void' , testVal ) ;
@@ -370,8 +370,8 @@ Tinytest.add('ClientStorage - LocalStorage - remove() - non existent value', fun
370
370
371
371
Tinytest . add ( 'ClientStorage - LocalStorage - empty() - ALL' , function ( test ) {
372
372
ClientStorageLS . empty ( ) ;
373
- var setResOne = ClientStorageLS . set ( 'teststorageOne' , 'One' ) ;
374
- var setResTwo = ClientStorageLS . set ( 'teststorageTwo' , 'Two' ) ;
373
+ ClientStorageLS . set ( 'teststorageOne' , 'One' ) ;
374
+ ClientStorageLS . set ( 'teststorageTwo' , 'Two' ) ;
375
375
var removeRes = ClientStorageLS . empty ( ) ;
376
376
377
377
test . isTrue ( removeRes ) ;
@@ -383,8 +383,8 @@ Tinytest.add('ClientStorage - LocalStorage - empty() - ALL', function (test) {
383
383
384
384
Tinytest . add ( 'ClientStorage - LocalStorage - keys() / has() / remove() - String' , function ( test ) {
385
385
ClientStorageLS . empty ( ) ;
386
- var setResOne = ClientStorageLS . set ( 'teststorageOne' , 'One' ) ;
387
- var setResTwo = ClientStorageLS . set ( 'teststorageTwo' , 'Two' ) ;
386
+ ClientStorageLS . set ( 'teststorageOne' , 'One' ) ;
387
+ ClientStorageLS . set ( 'teststorageTwo' , 'Two' ) ;
388
388
389
389
test . isTrue ( ! ! ~ ClientStorageLS . keys ( ) . indexOf ( 'teststorageOne' ) ) ;
390
390
test . isTrue ( ! ! ~ ClientStorageLS . keys ( ) . indexOf ( 'teststorageTwo' ) ) ;
@@ -483,8 +483,8 @@ Tinytest.add('ClientStorage - JS - remove() - non existent value', function (tes
483
483
484
484
Tinytest . add ( 'ClientStorage - JS - empty() - ALL' , function ( test ) {
485
485
ClientStorageJS . empty ( ) ;
486
- var setResOne = ClientStorageJS . set ( 'teststorageOne' , 'One' ) ;
487
- var setResTwo = ClientStorageJS . set ( 'teststorageTwo' , 'Two' ) ;
486
+ ClientStorageJS . set ( 'teststorageOne' , 'One' ) ;
487
+ ClientStorageJS . set ( 'teststorageTwo' , 'Two' ) ;
488
488
var removeRes = ClientStorageJS . empty ( ) ;
489
489
490
490
test . isTrue ( removeRes ) ;
@@ -496,8 +496,8 @@ Tinytest.add('ClientStorage - JS - empty() - ALL', function (test) {
496
496
497
497
Tinytest . add ( 'ClientStorage - JS - keys() / has() / remove() - String' , function ( test ) {
498
498
ClientStorageJS . empty ( ) ;
499
- var setResOne = ClientStorageJS . set ( 'teststorageOne' , 'One' ) ;
500
- var setResTwo = ClientStorageJS . set ( 'teststorageTwo' , 'Two' ) ;
499
+ ClientStorageJS . set ( 'teststorageOne' , 'One' ) ;
500
+ ClientStorageJS . set ( 'teststorageTwo' , 'Two' ) ;
501
501
502
502
test . isTrue ( ! ! ~ ClientStorageJS . keys ( ) . indexOf ( 'teststorageOne' ) ) ;
503
503
test . isTrue ( ! ! ~ ClientStorageJS . keys ( ) . indexOf ( 'teststorageTwo' ) ) ;
0 commit comments