-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.js
32 lines (28 loc) · 946 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { writeFileSync } = require("fs");
const App = require("./dist/App").default;
async function runAndLog(body) {
try {
console.log(await App.save({ body }));
} catch (error) {
console.error(error?.stack ?? error);
}
}
async function runTests() {
// await runAndLog({
// url: "https://gushcrm.com/feed/posts/512/20079?mode=preview"
// });
// await runAndLog({
// url: "https://www.linkedin.com/posts/madovermarketing_madovermarketing-advertisingandmarketing-activity-7058809799261458432-IOBl",
// html: true
// });
// await runAndLog({
// url: "https://gushcrm.com/feed/posts/512/20079?mode=preview",
// pdf: {}
// });
await runAndLog({
url: "https://www.youtube.com/watch?v=6emGENJyIIQ",
preview: true,
botUserAgent: "Castyy-Bot/1.1"
});
}
runTests().then(() => console.log("done"));