@@ -134,11 +134,11 @@ describe('SourceMapManager', () => {
134134 sinon . stub ( SDK . PageResourceLoader . PageResourceLoader . instance ( ) , 'loadResource' ) . resolves ( { content} ) ;
135135 sourceMapManager . attachSourceMap ( client , sourceURL , sourceMappingURL ) ;
136136 assert . strictEqual ( sourceMapWillAttach . callCount , 1 , 'SourceMapWillAttach events' ) ;
137- assert . isTrue ( sourceMapWillAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
137+ sinon . assert . calledWith ( sourceMapWillAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
138138 const sourceMap = await sourceMapManager . sourceMapForClientPromise ( client ) ;
139139 assert . strictEqual ( sourceMapAttached . callCount , 1 , 'SourceMapAttached events' ) ;
140- assert . isTrue ( sourceMapAttached . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
141- assert . isTrue ( sourceMapAttached . calledWith ( sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ) ;
140+ sinon . assert . calledWith ( sourceMapAttached , sinon . match . hasNested ( 'data.client' , client ) ) ;
141+ sinon . assert . calledWith ( sourceMapAttached , sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ;
142142 assert . isTrue ( sourceMapAttached . calledAfter ( sourceMapWillAttach ) ) ;
143143 } ) ;
144144
@@ -153,10 +153,10 @@ describe('SourceMapManager', () => {
153153 sinon . stub ( SDK . PageResourceLoader . PageResourceLoader . instance ( ) , 'loadResource' ) . rejects ( 'Error' ) ;
154154 sourceMapManager . attachSourceMap ( client , sourceURL , sourceMappingURL ) ;
155155 assert . strictEqual ( sourceMapWillAttach . callCount , 1 , 'SourceMapWillAttach events' ) ;
156- assert . isTrue ( sourceMapWillAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
156+ sinon . assert . calledWith ( sourceMapWillAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
157157 await sourceMapManager . sourceMapForClientPromise ( client ) ;
158158 assert . strictEqual ( sourceMapFailedToAttach . callCount , 1 , 'SourceMapFailedToAttach events' ) ;
159- assert . isTrue ( sourceMapFailedToAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
159+ sinon . assert . calledWith ( sourceMapFailedToAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
160160 assert . isTrue ( sourceMapFailedToAttach . calledAfter ( sourceMapWillAttach ) ) ;
161161 } ) ;
162162
@@ -171,11 +171,11 @@ describe('SourceMapManager', () => {
171171 sinon . stub ( SDK . PageResourceLoader . PageResourceLoader . instance ( ) , 'loadResource' ) . resolves ( { content} ) ;
172172 sourceMapManager . attachSourceMap ( client , sourceURL , sourceMappingURL ) ;
173173 sourceMapManager . detachSourceMap ( client ) ;
174- assert . isTrue ( sourceMapFailedToAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
174+ sinon . assert . calledWith ( sourceMapFailedToAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
175175 sourceMapManager . attachSourceMap ( client , sourceURL , sourceMappingURL ) ;
176176 await sourceMapManager . sourceMapForClientPromise ( client ) ;
177177 assert . strictEqual ( sourceMapAttached . callCount , 1 , 'SourceMapAttached events' ) ;
178- assert . isTrue ( sourceMapAttached . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
178+ sinon . assert . calledWith ( sourceMapAttached , sinon . match . hasNested ( 'data.client' , client ) ) ;
179179 assert . isTrue ( sourceMapAttached . calledAfter ( sourceMapFailedToAttach ) ) ;
180180 } ) ;
181181
@@ -223,7 +223,7 @@ describe('SourceMapManager', () => {
223223 assert . strictEqual ( loadResource . callCount , 0 , 'loadResource calls' ) ;
224224 await sourceMapManager . sourceMapForClientPromise ( client ) ;
225225 assert . strictEqual ( sourceMapFailedToAttach . callCount , 1 , 'SourceMapFailedToAttach events' ) ;
226- assert . isTrue ( sourceMapFailedToAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
226+ sinon . assert . calledWith ( sourceMapFailedToAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
227227 } ) ;
228228 } ) ;
229229
@@ -246,8 +246,8 @@ describe('SourceMapManager', () => {
246246 const sourceMap = await sourceMapManager . sourceMapForClientPromise ( client ) ;
247247 sourceMapManager . detachSourceMap ( client ) ;
248248 assert . strictEqual ( sourceMapDetached . callCount , 1 , 'SourceMapDetached events' ) ;
249- assert . isTrue ( sourceMapDetached . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
250- assert . isTrue ( sourceMapDetached . calledWith ( sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ) ;
249+ sinon . assert . calledWith ( sourceMapDetached , sinon . match . hasNested ( 'data.client' , client ) ) ;
250+ sinon . assert . calledWith ( sourceMapDetached , sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ;
251251 } ) ;
252252
253253 it ( 'triggers the correct lifecycle events when disabled' , async ( ) => {
@@ -281,7 +281,7 @@ describe('SourceMapManager', () => {
281281 sourceMapManager . setEnabled ( false ) ;
282282
283283 assert . strictEqual ( sourceMapFailedToAttach . callCount , 1 , 'SourceMapFailedToAttach events' ) ;
284- assert . isTrue ( sourceMapFailedToAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
284+ sinon . assert . calledWith ( sourceMapFailedToAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
285285 } ) ;
286286
287287 it ( 'triggers the correct lifecycle events when disabling once attached' , async ( ) => {
@@ -297,8 +297,8 @@ describe('SourceMapManager', () => {
297297 sourceMapManager . setEnabled ( false ) ;
298298
299299 assert . strictEqual ( sourceMapDetached . callCount , 1 , 'SourceMapDetached events' ) ;
300- assert . isTrue ( sourceMapDetached . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
301- assert . isTrue ( sourceMapDetached . calledWith ( sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ) ;
300+ sinon . assert . calledWith ( sourceMapDetached , sinon . match . hasNested ( 'data.client' , client ) ) ;
301+ sinon . assert . calledWith ( sourceMapDetached , sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ;
302302 } ) ;
303303
304304 it ( 'triggers the correct lifecycle events when re-enabling' , async ( ) => {
@@ -324,11 +324,11 @@ describe('SourceMapManager', () => {
324324 assert . strictEqual ( sourceMapDetached . callCount , 0 , 'SourceMapDetached events' ) ;
325325 assert . strictEqual ( sourceMapFailedToAttach . callCount , 0 , 'SourceMapFailedToAttach events' ) ;
326326 assert . strictEqual ( sourceMapWillAttach . callCount , 1 , 'SourceMapWillAttach events' ) ;
327- assert . isTrue ( sourceMapWillAttach . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
327+ sinon . assert . calledWith ( sourceMapWillAttach , sinon . match . hasNested ( 'data.client' , client ) ) ;
328328 assert . isTrue ( sourceMapAttached . calledAfter ( sourceMapWillAttach ) ) ;
329329 assert . strictEqual ( sourceMapAttached . callCount , 1 , 'SourceMapAttached events' ) ;
330- assert . isTrue ( sourceMapAttached . calledWith ( sinon . match . hasNested ( 'data.client' , client ) ) ) ;
331- assert . isTrue ( sourceMapAttached . calledWith ( sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ) ;
330+ sinon . assert . calledWith ( sourceMapAttached , sinon . match . hasNested ( 'data.client' , client ) ) ;
331+ sinon . assert . calledWith ( sourceMapAttached , sinon . match . hasNested ( 'data.sourceMap' , sourceMap ) ) ;
332332 } ) ;
333333 } ) ;
334334} ) ;
0 commit comments