@@ -16,7 +16,7 @@ import _omit from 'lodash/omit'
16
16
17
17
Vue . use ( Vuex )
18
18
19
- describe ( 'makeServicePlugin' , function ( ) {
19
+ describe ( 'makeServicePlugin' , function ( ) {
20
20
beforeEach ( ( ) => {
21
21
clearModels ( )
22
22
} )
@@ -28,7 +28,7 @@ describe('makeServicePlugin', function() {
28
28
assert ( clients . byAlias [ 'this is a test' ] , 'got a reference to the client.' )
29
29
} )
30
30
31
- it ( 'registers the vuex module with options' , function ( ) {
31
+ it ( 'registers the vuex module with options' , function ( ) {
32
32
interface RootState {
33
33
todos : { }
34
34
}
@@ -73,6 +73,7 @@ describe('makeServicePlugin', function() {
73
73
isRemovePending : false ,
74
74
isUpdatePending : false ,
75
75
keepCopiesInStore : false ,
76
+ debounceEventsTime : null ,
76
77
keyedById : { } ,
77
78
modelName : 'Todo' ,
78
79
nameStyle : 'short' ,
@@ -94,7 +95,7 @@ describe('makeServicePlugin', function() {
94
95
assert . deepEqual ( _omit ( received ) , _omit ( expected ) , 'defaults in place.' )
95
96
} )
96
97
97
- it ( 'sets up Model.store && service.FeathersVuexModel' , function ( ) {
98
+ it ( 'sets up Model.store && service.FeathersVuexModel' , function ( ) {
98
99
const serverAlias = 'default'
99
100
const { makeServicePlugin, BaseModel } = feathersVuex ( feathers , {
100
101
serverAlias
@@ -114,7 +115,7 @@ describe('makeServicePlugin', function() {
114
115
assert . equal ( service . FeathersVuexModel , Todo , 'Model accessible on service' )
115
116
} )
116
117
117
- it ( 'allows accessing other models' , function ( ) {
118
+ it ( 'allows accessing other models' , function ( ) {
118
119
const serverAlias = 'default'
119
120
const { makeServicePlugin, BaseModel, models } = feathersVuex ( feathers , {
120
121
idField : '_id' ,
@@ -140,7 +141,7 @@ describe('makeServicePlugin', function() {
140
141
assert ( Todo . store === store )
141
142
} )
142
143
143
- it ( 'allows service specific handleEvents' , async function ( ) {
144
+ it ( 'allows service specific handleEvents' , async function ( ) {
144
145
// feathers.use('todos', new TodosService())
145
146
const serverAlias = 'default'
146
147
const { makeServicePlugin, BaseModel } = feathersVuex ( feathers , {
@@ -235,7 +236,7 @@ describe('makeServicePlugin', function() {
235
236
assert ( removedCalled , 'removed handler called' )
236
237
} )
237
238
238
- it ( 'fall back to globalOptions handleEvents if service specific handleEvents handler is missing' , async function ( ) {
239
+ it ( 'fall back to globalOptions handleEvents if service specific handleEvents handler is missing' , async function ( ) {
239
240
// feathers.use('todos', new TodosService())
240
241
const serverAlias = 'default'
241
242
@@ -339,7 +340,7 @@ describe('makeServicePlugin', function() {
339
340
assert ( globalRemovedCalled , 'global removed handler called' )
340
341
} )
341
342
342
- it ( 'allow handleEvents handlers to return extracted event data' , async function ( ) {
343
+ it ( 'allow handleEvents handlers to return extracted event data' , async function ( ) {
343
344
const serverAlias = 'default'
344
345
345
346
const { makeServicePlugin, BaseModel } = feathersVuex ( feathers , {
0 commit comments