浏览代码

Tests: Remove usage of Function.caller. (#23412)

Michael Herzog 3 年之前
父节点
当前提交
a86857ba8d
共有 1 个文件被更改,包括 0 次插入13 次删除
  1. 0 13
      test/unit/src/math/Interpolant.tests.js

+ 0 - 13
test/unit/src/math/Interpolant.tests.js

@@ -81,19 +81,6 @@ export default QUnit.module( 'Maths', () => {
 
 		Mock.calls = null;
 
-		Mock.captureCall = function ( args ) {
-
-			if ( Mock.calls !== null ) {
-
-				Mock.calls.push( {
-					func: Mock.captureCall.caller.name,
-					args: Array.prototype.slice.call( args )
-				} );
-
-			}
-
-		};
-
 		// Tests
 
 		// INSTANCING