diff --git a/lib/manager/gradle-wrapper/artifacts-real.spec.ts b/lib/manager/gradle-wrapper/artifacts-real.spec.ts
index 6b610798274b5cd6c81a4a1e17de06c7f261e717..5d614b888be766c467ea64735743730218c76832 100644
--- a/lib/manager/gradle-wrapper/artifacts-real.spec.ts
+++ b/lib/manager/gradle-wrapper/artifacts-real.spec.ts
@@ -77,8 +77,9 @@ describe('manager/gradle-wrapper/artifacts-real', () => {
           'gradlew.bat',
         ].map((fileProjectPath) => ({
           file: {
-            name: fileProjectPath,
             contents: readBinSync(`./testFiles/${fileProjectPath}`),
+            path: fileProjectPath,
+            type: 'addition',
           },
         }))
       );