1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-14 02:35:06 +00:00

Add screenshot tests for user, post, and gallery

This commit is contained in:
Cadence Ember
2020-07-20 19:15:58 +12:00
parent f25b2891ac
commit 5baae5167d
4 changed files with 62 additions and 44 deletions

View File

@@ -60,7 +60,7 @@ class SavedRequestManager {
const base = pj(folder, row.path)
try {
fs.accessSync(base)
console.log("Found, using saved request for "+row.path)
// console.log("Found, using saved request for "+row.path)
return new Saved(base)
} catch (e) {
console.log("Known, but not downloaded for "+row.path)
@@ -85,7 +85,7 @@ class SavedRequestManager {
}
} else {
const name = generateName()
console.log("Not found, saving now as "+name)
console.log(`Not found, saving now:\n ${this.url}\n -> ${name}`)
const internalRequest = new NodeFetch(this.url)
return new DelayedBackend(