Skip to content

Commit 252dc9c

Browse files
committedMar 26, 2025·
Clean up tests
1 parent c1be9e5 commit 252dc9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tests/custom-behavior.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ test("test crawl exits if behavior not fetched from url", async () => {
126126

127127
try {
128128
child_process.execSync(
129-
"docker run -v $PWD/test-crawls:/crawls -v $PWD/tests/invalid-behaviors/:/custom-behaviors/ webrecorder/browsertrix-crawler crawl --url https://example.com/ --url https://example.org/ --url https://old.webrecorder.net/ --customBehaviors https://webrecorder.net/doesntexist/custombehavior.js --scopeType page",
129+
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://example.com --customBehaviors https://webrecorder.net/doesntexist/custombehavior.js --scopeType page",
130130
);
131131
} catch (e) {
132132
status = e.status;
@@ -141,7 +141,7 @@ test("test crawl exits if behavior not fetched from git repo", async () => {
141141

142142
try {
143143
child_process.execSync(
144-
"docker run -v $PWD/test-crawls:/crawls -v $PWD/tests/invalid-behaviors/:/custom-behaviors/ webrecorder/browsertrix-crawler crawl --url https://example.com/ --url https://example.org/ --url https://old.webrecorder.net/ --customBehaviors git+https://github.com/webrecorder/doesntexist --scopeType page",
144+
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://example.com --customBehaviors git+https://github.com/webrecorder/doesntexist --scopeType page",
145145
);
146146
} catch (e) {
147147
status = e.status;
@@ -156,7 +156,7 @@ test("test crawl exits if not custom behaviors collected from local path", async
156156

157157
try {
158158
child_process.execSync(
159-
"docker run -v $PWD/test-crawls:/crawls -v $PWD/tests/invalid-behaviors/:/custom-behaviors/ webrecorder/browsertrix-crawler crawl --url https://example.com/ --url https://example.org/ --url https://old.webrecorder.net/ --customBehaviors /custom-behaviors/doesntexist --scopeType page",
159+
"docker run -v $PWD/test-crawls:/crawls webrecorder/browsertrix-crawler crawl --url https://example.com --customBehaviors /custom-behaviors/doesntexist --scopeType page",
160160
);
161161
} catch (e) {
162162
status = e.status;

0 commit comments

Comments
 (0)
Please sign in to comment.