@@ -9,7 +9,7 @@ describe('Model', () => {
99 it ( 'should expose model data in observable' , ( ) => {
1010 const model = modelFactory . create ( { value : 'test' } ) ;
1111
12- model . data$ . subscribe ( data =>
12+ model . data$ . subscribe ( ( data ) =>
1313 assert . deepStrictEqual ( data , { value : 'test' } )
1414 ) ;
1515 } ) ;
@@ -31,7 +31,7 @@ describe('Model', () => {
3131 it ( 'should use immutable data in exposed observable by default' , ( ) => {
3232 const model = modelFactory . create ( { value : 'test' } ) ;
3333
34- model . data$ . subscribe ( data => {
34+ model . data$ . subscribe ( ( data ) => {
3535 data . value = 'changed' ;
3636 assert . deepStrictEqual ( model . get ( ) , { value : 'test' } ) ;
3737 } ) ;
@@ -43,7 +43,7 @@ describe('Model', () => {
4343 const modelData = model . get ( ) ;
4444 modelData . value = 'changed' ;
4545
46- model . data$ . subscribe ( data => {
46+ model . data$ . subscribe ( ( data ) => {
4747 assert . deepStrictEqual ( data , { value : 'test' } ) ;
4848 } ) ;
4949 } ) ;
@@ -56,15 +56,15 @@ describe('Model', () => {
5656
5757 changedData . value = 'changed even more' ;
5858
59- model . data$ . subscribe ( data => {
59+ model . data$ . subscribe ( ( data ) => {
6060 assert . deepStrictEqual ( data , { value : 'changed' } ) ;
6161 } ) ;
6262 } ) ;
6363
6464 it ( 'should use mutable data in exposed observable when configured' , ( ) => {
6565 const model = modelFactory . createMutable ( { value : 'test' } ) ;
6666
67- model . data$ . subscribe ( data => {
67+ model . data$ . subscribe ( ( data ) => {
6868 data . value = 'changed' ;
6969 assert . deepStrictEqual ( model . get ( ) , { value : 'changed' } ) ;
7070 } ) ;
@@ -76,7 +76,7 @@ describe('Model', () => {
7676 const modelData = model . get ( ) ;
7777 modelData . value = 'changed' ;
7878
79- model . data$ . subscribe ( data => {
79+ model . data$ . subscribe ( ( data ) => {
8080 assert . deepStrictEqual ( data , { value : 'changed' } ) ;
8181 } ) ;
8282 } ) ;
@@ -89,7 +89,7 @@ describe('Model', () => {
8989
9090 changedData . value = 'changed even more' ;
9191
92- model . data$ . subscribe ( data => {
92+ model . data$ . subscribe ( ( data ) => {
9393 assert . deepStrictEqual ( data , { value : 'changed even more' } ) ;
9494 } ) ;
9595 } ) ;
@@ -137,22 +137,22 @@ describe('Model', () => {
137137
138138 model2 . set ( { value : 'changed' } ) ;
139139
140- model1 . data$ . subscribe ( data =>
140+ model1 . data$ . subscribe ( ( data ) =>
141141 assert . deepStrictEqual ( data , { value : 'test1' } )
142142 ) ;
143- model2 . data$ . subscribe ( data =>
143+ model2 . data$ . subscribe ( ( data ) =>
144144 assert . deepStrictEqual ( data , { value : 'changed' } )
145145 ) ;
146146 } ) ;
147147
148148 it ( 'should not share subscription by default' , ( ) => {
149149 const model = modelFactory . create ( { value : 'test' } ) ;
150150
151- model . data$ . subscribe ( data => {
151+ model . data$ . subscribe ( ( data ) => {
152152 data . value = 'changed' ;
153153 assert . deepStrictEqual ( data , { value : 'changed' } ) ;
154154 } ) ;
155- model . data$ . subscribe ( data => {
155+ model . data$ . subscribe ( ( data ) => {
156156 assert . deepStrictEqual ( data , { value : 'test' } ) ;
157157 } ) ;
158158 } ) ;
@@ -162,11 +162,11 @@ describe('Model', () => {
162162 value : 'test'
163163 } ) ;
164164
165- model . data$ . subscribe ( data => {
165+ model . data$ . subscribe ( ( data ) => {
166166 data . value = 'changed' ;
167167 assert . deepStrictEqual ( data , { value : 'changed' } ) ;
168168 } ) ;
169- model . data$ . subscribe ( data => {
169+ model . data$ . subscribe ( ( data ) => {
170170 assert . deepStrictEqual ( data , { value : 'changed' } ) ;
171171 } ) ;
172172 } ) ;
0 commit comments