Skip to content

Commit 2719643

Browse files
committed
Lint cleanup
1 parent 3bbc3cd commit 2719643

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/service-module/model-instance-defaults.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,31 @@ function makeContext() {
4848
super(data, options)
4949
}
5050
public static modelName = 'Person'
51-
public static test: boolean = true
51+
public static test = true
5252
}
5353
class Item extends BaseModel {
5454
public static modelName = 'Item'
55-
public static test: boolean = true
55+
public static test = true
5656
}
5757
class Task extends BaseModel {
5858
public static modelName = 'Task'
59-
public static test: boolean = true
59+
public static test = true
6060
}
6161
class Car extends BaseModel {
6262
public static modelName = 'Car'
63-
public static test: boolean = true
63+
public static test = true
6464
}
6565
class Group extends BaseModel {
6666
public static modelName = 'Group'
67-
public static test: boolean = true
67+
public static test = true
6868
}
6969
class Test extends BaseModel {
7070
public static modelName = 'Test'
71-
public static test: boolean = true
71+
public static test = true
7272
}
7373
class Thing extends BaseModel {
7474
public static modelName = 'Thing'
75-
public static test: boolean = true
75+
public static test = true
7676
}
7777

7878
const todosPlugin = makeServicePlugin({
@@ -124,7 +124,7 @@ describe('Models - Default Values', function() {
124124
// monkey patched with the store.
125125
class NakedTodo extends BaseModel {
126126
public static modelName = 'NakedTodo'
127-
public static test: boolean = true
127+
public static test = true
128128
}
129129
const todo = new NakedTodo()
130130

@@ -187,9 +187,9 @@ describe('Models - Default Values', function() {
187187

188188
class Car extends BaseModel {
189189
public id?
190-
public year: number = 1905
191-
public make: string = 'Tesla'
192-
public model: string = 'Roadster'
190+
public year = 1905
191+
public make = 'Tesla'
192+
public model = 'Roadster'
193193
public get combined(): string {
194194
return `${this.year} ${this.make} ${this.model}`
195195
}
@@ -223,9 +223,9 @@ describe('Models - Default Values', function() {
223223

224224
class Car extends BaseModel {
225225
public id?
226-
public year: number = 1905
227-
public make: string = 'Tesla'
228-
public model: string = 'Roadster'
226+
public year = 1905
227+
public make = 'Tesla'
228+
public model = 'Roadster'
229229

230230
public constructor(data?, options?) {
231231
super(data, options)
@@ -247,7 +247,7 @@ describe('Models - Default Values', function() {
247247

248248
class Person extends BaseModel {
249249
public id?
250-
public firstName: string = 'Harry'
250+
public firstName = 'Harry'
251251
public location: Location = {
252252
coordinates: [0, 0]
253253
}

0 commit comments

Comments
 (0)