@@ -44,7 +44,7 @@ describe("SessionStorage Storage", () => {
4444 describe ( "When window is not available and it uses storage mock" , ( ) => {
4545 let userData ;
4646 const fooData = {
47- foo : "foo-value"
47+ foo : "foo-value" ,
4848 } ;
4949
5050 beforeEach ( ( ) => {
@@ -77,7 +77,7 @@ describe("SessionStorage Storage", () => {
7777
7878 beforeAll ( ( ) => {
7979 userData = new SessionStorage ( "userData" , {
80- root : storage . mock
80+ root : storage . mock ,
8181 } ) ;
8282 } ) ;
8383
@@ -117,13 +117,13 @@ describe("SessionStorage Storage", () => {
117117 describe ( "Data property of a method" , ( ) => {
118118 let userData ;
119119 const fooData = {
120- foo : "foo-value"
120+ foo : "foo-value" ,
121121 } ;
122122
123123 beforeEach ( ( ) => {
124124 storage . stubs . getItem . returns ( JSON . stringify ( fooData ) ) ;
125125 userData = new SessionStorage ( "userData" , {
126- root : storage . mock
126+ root : storage . mock ,
127127 } ) ;
128128 } ) ;
129129
@@ -155,7 +155,7 @@ describe("SessionStorage Storage", () => {
155155 it ( "should return default value correspondent to query while resource is being loaded" , ( ) => {
156156 expect . assertions ( 2 ) ;
157157 userData = new SessionStorage ( "userData" , {
158- root : storage . mock
158+ root : storage . mock ,
159159 } ) ;
160160 let queriedData = userData . query ( { prop : "foo" } ) ;
161161 const promise = queriedData . read ( ) ;
@@ -170,13 +170,13 @@ describe("SessionStorage Storage", () => {
170170 describe ( "Update method" , ( ) => {
171171 let userData ;
172172 const fooData = {
173- foo : "foo-value"
173+ foo : "foo-value" ,
174174 } ;
175175
176176 beforeEach ( ( ) => {
177177 storage . stubs . getItem . returns ( JSON . stringify ( fooData ) ) ;
178178 userData = new SessionStorage ( "userData" , {
179- root : storage . mock
179+ root : storage . mock ,
180180 } ) ;
181181 } ) ;
182182
@@ -214,7 +214,7 @@ describe("SessionStorage Storage", () => {
214214 await queriedData . update ( "foo-updated-value" ) ;
215215 expect ( storage . stubs . setItem . getCall ( 0 ) . args [ 1 ] ) . toEqual (
216216 JSON . stringify ( {
217- foo : "foo-updated-value"
217+ foo : "foo-updated-value" ,
218218 } )
219219 ) ;
220220 } ) ;
@@ -237,13 +237,13 @@ describe("SessionStorage Storage", () => {
237237 describe ( "Delete method" , ( ) => {
238238 let userData ;
239239 const fooData = {
240- foo : "foo-value"
240+ foo : "foo-value" ,
241241 } ;
242242
243243 beforeEach ( ( ) => {
244244 storage . stubs . getItem . returns ( JSON . stringify ( fooData ) ) ;
245245 userData = new SessionStorage ( "userData" , {
246- root : storage . mock
246+ root : storage . mock ,
247247 } ) ;
248248 } ) ;
249249
@@ -289,22 +289,22 @@ describe("SessionStorage Storage", () => {
289289 describe ( "when passing tags" , ( ) => {
290290 it ( "should contain the session-storage tag even when a custom tag is received" , ( ) => {
291291 fooData = new SessionStorage ( "fooData" , {
292- tags : [ "foo-tag" ]
292+ tags : [ "foo-tag" ] ,
293293 } ) ;
294294 expect ( providers . getByTag ( "session-storage" ) . elements [ 0 ] ) . toEqual ( fooData ) ;
295295 } ) ;
296296
297297 it ( "should contain the ocal-storage tag even when an array of custom tags is received" , ( ) => {
298298 fooData = new SessionStorage ( "fooData" , {
299- tags : [ "foo-tag" , "foo-tag-2" ]
299+ tags : [ "foo-tag" , "foo-tag-2" ] ,
300300 } ) ;
301301 expect ( providers . getByTag ( "session-storage" ) . elements [ 0 ] ) . toEqual ( fooData ) ;
302302 } ) ;
303303
304304 it ( "should contain defined custom tag if received" , ( ) => {
305305 const FOO_TAG = "foo-tag" ;
306306 fooData = new SessionStorage ( "fooData" , {
307- tags : [ FOO_TAG ]
307+ tags : [ FOO_TAG ] ,
308308 } ) ;
309309 expect ( providers . getByTag ( FOO_TAG ) . elements [ 0 ] ) . toEqual ( fooData ) ;
310310 } ) ;
@@ -314,7 +314,7 @@ describe("SessionStorage Storage", () => {
314314 const FOO_TAG = "foo-tag" ;
315315 const FOO_TAG_2 = "foo-tag-2" ;
316316 fooData = new SessionStorage ( "fooData" , {
317- tags : [ FOO_TAG , FOO_TAG_2 ]
317+ tags : [ FOO_TAG , FOO_TAG_2 ] ,
318318 } ) ;
319319 expect ( providers . getByTag ( FOO_TAG ) . elements [ 0 ] ) . toEqual ( fooData ) ;
320320 expect ( providers . getByTag ( FOO_TAG_2 ) . elements [ 0 ] ) . toEqual ( fooData ) ;
0 commit comments