browsertrix-crawler/tests/custom-behaviors/custom-2.js
Ilya Kreymer 5c00bca2b4
tests: use old.webrecorder.net for testing (#710)
replace webrecorder.net -> old.webrecorder.net to fix tests relying on
old website for now
2024-10-31 13:24:58 -04:00

21 lines
395 B
JavaScript

/* eslint-disable @typescript-eslint/no-unused-vars */
class TestBehavior2 {
static init() {
return {
state: {},
};
}
static get id() {
return "TestBehavior2";
}
static isMatch() {
return window.location.origin === "https://old.webrecorder.net";
}
async *run(ctx) {
ctx.log("In Test Behavior 2!");
yield ctx.Lib.getState(ctx, "test-stat-2");
}
}