Files app: Add presubmit to block @ts-ignore in TS files.
Fix the `MockFile` to output the same string value of the
implementation.
Bug: b:289003444
Change-Id: I36529ef112af6e81a9e84f6dbb0777ce97e3d543
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4975179
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Reviewed-by: Ben Reich <benreich@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: Wenbo Jie <wenbojie@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1215153}
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py
index df9dff06..fbd00a0 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/PRESUBMIT_test_mocks.py
@@ -209,6 +209,9 @@
self._scm_diff += "+%s\n" % l
self._old_contents = old_contents
+ def __str__(self):
+ return self._local_path
+
def Action(self):
return self._action