@@ -67,31 +67,31 @@ function makeContext() {
67
67
}
68
68
class Person extends BaseModel {
69
69
public static modelName = 'Person'
70
- public static test : boolean = true
70
+ public static test = true
71
71
}
72
72
class Item extends BaseModel {
73
73
public static modelName = 'Item'
74
- public static test : boolean = true
74
+ public static test = true
75
75
}
76
76
class Task extends BaseModel {
77
77
public static modelName = 'Task'
78
- public static test : boolean = true
78
+ public static test = true
79
79
}
80
80
class Car extends BaseModel {
81
81
public static modelName = 'Car'
82
- public static test : boolean = true
82
+ public static test = true
83
83
}
84
84
class Group extends BaseModel {
85
85
public static modelName = 'Group'
86
- public static test : boolean = true
86
+ public static test = true
87
87
}
88
88
class Test extends BaseModel {
89
89
public static modelName = 'Test'
90
- public static test : boolean = true
90
+ public static test = true
91
91
}
92
92
class Thing extends BaseModel {
93
93
public static modelName = 'Thing'
94
- public static test : boolean = true
94
+ public static test = true
95
95
}
96
96
97
97
return {
@@ -119,7 +119,7 @@ function makeContextWithState() {
119
119
class ServiceTodo extends BaseModel {
120
120
public static modelName = 'ServiceTodo'
121
121
122
- public static test : boolean = true
122
+ public static test = true
123
123
}
124
124
125
125
return {
@@ -156,13 +156,13 @@ function makeAutoRemoveContext() {
156
156
} )
157
157
class Todo extends BaseModel {
158
158
public static modelName = 'Todo'
159
- public static servicePath : string = 'todos'
160
- public static test : boolean = true
159
+ public static servicePath = 'todos'
160
+ public static test = true
161
161
}
162
162
class Task extends BaseModel {
163
163
public static modelName = 'Task'
164
- public static servicePath : string = 'tasks'
165
- public static test : boolean = true
164
+ public static servicePath = 'tasks'
165
+ public static test = true
166
166
}
167
167
return {
168
168
feathers,
@@ -197,7 +197,6 @@ describe('Service Module', function() {
197
197
'the Model was added to the models'
198
198
)
199
199
assert (
200
- // @ts -ignore
201
200
feathersService . FeathersVuexModel === ServiceTodo ,
202
201
'the Model is also found at service.FeathersVuexModel'
203
202
)
@@ -388,8 +387,10 @@ describe('Service Module', function() {
388
387
} )
389
388
390
389
it ( `allows shallow assign of data when cloning` , function ( ) {
391
- const { serviceTodo, owners } = this
392
- let serviceTodoClone = serviceTodo . clone ( { isComplete : ! serviceTodo . isComplete } )
390
+ const { serviceTodo } = this
391
+ const serviceTodoClone = serviceTodo . clone ( {
392
+ isComplete : ! serviceTodo . isComplete
393
+ } )
393
394
394
395
assert . equal (
395
396
! serviceTodo . isComplete ,
@@ -408,7 +409,7 @@ describe('Service Module', function() {
408
409
409
410
it ( 'allows reseting copy changes back to match the original' , function ( ) {
410
411
const { serviceTodo } = this
411
- let serviceTodoClone = serviceTodo . clone ( )
412
+ const serviceTodoClone = serviceTodo . clone ( )
412
413
413
414
serviceTodoClone . description = 'Do something else'
414
415
serviceTodoClone . reset ( )
@@ -488,7 +489,7 @@ describe('Service Module', function() {
488
489
const { makeServicePlugin, BaseModel, Task } = makeContext ( )
489
490
class Todo extends BaseModel {
490
491
public static modelName = 'Todo'
491
- public static test : boolean = true
492
+ public static test = true
492
493
}
493
494
const store = new Vuex . Store < RootState > ( {
494
495
plugins : [
0 commit comments