@@ -49,6 +49,7 @@ function makeContext() {
49
49
public constructor ( data , options ?) {
50
50
super ( data , options )
51
51
}
52
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
52
53
public static instanceDefaults ( data ) {
53
54
return {
54
55
description : ''
@@ -309,22 +310,22 @@ describe('Service Module', function() {
309
310
} )
310
311
311
312
it ( `the object returned from clone is not the same as the original` , function ( ) {
312
- const { serviceTodo, owners } = this
313
+ const { serviceTodo } = this
313
314
const serviceTodoClone = serviceTodo . clone ( )
314
315
315
316
assert ( serviceTodo !== serviceTodoClone , 'the objects are distinct' )
316
317
} )
317
318
318
319
it ( `the object returned from commit is not the same as the clone` , function ( ) {
319
- const { serviceTodo, owners } = this
320
+ const { serviceTodo } = this
320
321
const serviceTodoClone = serviceTodo . clone ( )
321
322
const committedTodo = serviceTodoClone . commit ( )
322
323
323
324
assert ( committedTodo !== serviceTodoClone , 'the objects are distinct' )
324
325
} )
325
326
326
327
it ( `the object returned from commit is the same as the original` , function ( ) {
327
- const { serviceTodo, owners } = this
328
+ const { serviceTodo } = this
328
329
const serviceTodoClone = serviceTodo . clone ( )
329
330
const committedTodo = serviceTodoClone . commit ( )
330
331
@@ -718,6 +719,7 @@ describe('Service Module', function() {
718
719
// Load some data into the store
719
720
store
720
721
. dispatch ( 'todos/find' , { query : { } } )
722
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
721
723
. then ( todos => {
722
724
// Remove the third item from the service
723
725
// @ts -ignore
@@ -731,6 +733,7 @@ describe('Service Module', function() {
731
733
// Perform the same query again
732
734
return store . dispatch ( 'todos/find' , { query : { } } )
733
735
} )
736
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
734
737
. then ( todos => {
735
738
assert (
736
739
todoState . ids . length === 2 ,
@@ -768,6 +771,7 @@ describe('Service Module', function() {
768
771
// Load some data into the store
769
772
store
770
773
. dispatch ( 'tasks/find' , { query : { } } )
774
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
771
775
. then ( todos => {
772
776
// Remove the third item from the service
773
777
// @ts -ignore
@@ -818,6 +822,7 @@ describe('Service Module', function() {
818
822
// Load some data into the store
819
823
store
820
824
. dispatch ( 'todos/find' , { query : { } } )
825
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
821
826
. then ( todos => {
822
827
// Remove the third item from the service
823
828
// @ts -ignore
@@ -831,6 +836,7 @@ describe('Service Module', function() {
831
836
// Perform the same query again
832
837
return store . dispatch ( 'todos/find' , { query : { } } )
833
838
} )
839
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
834
840
. then ( todos => {
835
841
assert (
836
842
todoState . ids . length === 3 ,
@@ -902,6 +908,7 @@ describe('Service Module', function() {
902
908
it ( 'allows custom getters' , function ( ) {
903
909
const { makeServicePlugin, ServiceTodo } = makeContext ( )
904
910
const customGetters = {
911
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
905
912
oneTwoThree ( state ) {
906
913
return 123
907
914
}
@@ -973,6 +980,7 @@ describe('Service Module', function() {
973
980
]
974
981
} )
975
982
983
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
976
984
feathersSocketioClient . service ( 'things' ) . on ( 'created' , item => {
977
985
assert (
978
986
store . state . things . keyedById [ 0 ] . test ,
@@ -997,6 +1005,7 @@ describe('Service Module', function() {
997
1005
998
1006
store . commit ( 'things/addItem' , { id : 1 , test : false } )
999
1007
1008
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1000
1009
feathersSocketioClient . service ( 'things' ) . on ( 'patched' , item => {
1001
1010
assert (
1002
1011
store . state . things . keyedById [ 1 ] . test ,
@@ -1021,6 +1030,7 @@ describe('Service Module', function() {
1021
1030
1022
1031
store . commit ( 'things/addItem' , { id : 1 , test : false } )
1023
1032
1033
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1024
1034
feathersSocketioClient . service ( 'things' ) . on ( 'updated' , item => {
1025
1035
assert (
1026
1036
store . state . things . keyedById [ 1 ] . test ,
@@ -1045,6 +1055,7 @@ describe('Service Module', function() {
1045
1055
1046
1056
store . commit ( 'things/addItem' , { id : 1 , test : false } )
1047
1057
1058
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1048
1059
feathersSocketioClient . service ( 'things' ) . on ( 'removed' , item => {
1049
1060
assert (
1050
1061
! store . state . things . keyedById [ 1 ] ,
0 commit comments