()
| 145 | } |
| 146 | |
| 147 | function loadGoldFile(): GoldFile { |
| 148 | const path = join(__dirname, 'gold-results', 'db-gold-messages-1.json') |
| 149 | const raw = readFileSync(path, 'utf8') |
| 150 | return JSON.parse(raw) as GoldFile |
| 151 | } |
| 152 | |
| 153 | function extractReportTextFromGold(messages: Array<GoldMessage>): string { |
| 154 | return messages |