@@ -156,23 +156,22 @@ describe('UpdateManager', () => {
156
156
} )
157
157
158
158
// on console should display @@@@@@@ updateMany to: 2
159
- it ( 'Should insert triples in more than one document' , done => {
159
+ it ( 'Should insert triples in more than one document' , ( ) => {
160
160
loadMeta ( updater . store )
161
161
updater . updateMany ( [ ] , [ st1 , st2 , st3 ] ) . then ( array => {
162
- expect ( updater . store . fetcher . webOperation ) . to . have . been . called ( ) // @@ twice
163
- } , err => console . log ( err ) )
164
- done ( )
162
+ expect ( updater . store . fetcher . webOperation ) . to . have . been . called ( )
163
+ } )
165
164
} )
166
165
167
166
// on console should display @@@@@@@ updateMany to: 2
168
- // and no console error
169
- it ( 'Should remove triples in more than one document' , async done => {
167
+ it ( 'Should remove triples in more than one document' , done => {
170
168
loadMeta ( updater . store )
171
169
updater . updateMany ( [ ] , [ st1 , st2 , st3 ] )
172
- updater . updateMany ( [ st1 , st2 , st3 ] ) . then ( array => {
173
- expect ( updater . store . fetcher . webOperation ) . to . have . been . called ( ) // @@ twice
174
- } , err => { console . log ( err ) } )
175
- done ( )
170
+ updater . updateMany ( [ st1 , st2 , st3 ] )
171
+ . then ( array => {
172
+ expect ( updater . store . fetcher . webOperation ) . to . have . been . called ( )
173
+ } )
174
+ . then ( ( ) => done ( ) , done )
176
175
} )
177
176
/*
178
177
it('Should patch an insert triple with no proior load', done => {
0 commit comments