(source, oldText, newText)
| 80 | } |
| 81 | |
| 82 | function replaceRequired(source, oldText, newText) { |
| 83 | if (source.includes(newText)) { |
| 84 | return source; |
| 85 | } |
| 86 | |
| 87 | if (!source.includes(oldText)) { |
| 88 | fail(); |
| 89 | } |
| 90 | |
| 91 | return source.replace(oldText, newText); |
| 92 | } |
| 93 | |
| 94 | function assertServerPatched(source) { |
| 95 | if ( |
no test coverage detected