| 956 | }); |
| 957 | const pageOf = (marker) => posts.find((post) => post.messages.some((message) => message.includes(marker)))?.page; |
| 958 | const projectOf = (value) => new URLSearchParams(String(value ?? '').replace(/^[^?]*/, '')).get('project'); |
| 959 | const mixed = posts.filter((post) => post.projects.some((project) => project && project !== projectOf(post.page))); |
| 960 | check('K24', 'A log line is posted under the page it was written on: before the switch the old one, after it the new one', |
| 961 | projectOf(pageOf('k24 log line before the switch')) === here && projectOf(pageOf('k24 log line after the switch')) === other && mixed.length === 0, |