Returns the absolute path if the conten hash matches.
(contentHash?: string)
| 109 | |
| 110 | /** Returns the absolute path if the conten hash matches. */ |
| 111 | protected checkContentHash(contentHash?: string) { |
| 112 | return checkContentHash( |
| 113 | this.absolutePath, |
| 114 | // Inline scripts will never match content of the html file. We skip the content check. |
| 115 | this.inlineScriptOffset || this.runtimeScriptOffset ? undefined : contentHash, |
| 116 | this._container._fileContentOverridesForTest.get(this.absolutePath), |
| 117 | ); |
| 118 | } |
| 119 | |
| 120 | /** Offsets a location that came from the runtime script, to where it appears in source code */ |
| 121 | public offsetScriptToSource<T extends { lineNumber: number; columnNumber: number }>(obj: T): T { |
no test coverage detected