aboutsummaryrefslogtreecommitdiff
path: root/test/content/mock/MockURLRepository.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/content/mock/MockURLRepository.ts')
-rw-r--r--test/content/mock/MockURLRepository.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/content/mock/MockURLRepository.ts b/test/content/mock/MockURLRepository.ts
new file mode 100644
index 0000000..731a7fb
--- /dev/null
+++ b/test/content/mock/MockURLRepository.ts
@@ -0,0 +1,9 @@
+import URLRepository from "../../../src/content/operators/impls/URLRepository";
+
+export default class MockURLRepository implements URLRepository {
+ constructor(private url: string = "https://example.com/") {}
+
+ getCurrentURL(): string {
+ return this.url;
+ }
+}