Skip to content

Commit 7b132db

Browse files
committed
Update unit tests
1 parent 0cdb0be commit 7b132db

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/asana_helper_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def asana_task_url(task_id)
4040
expect(extract_asana_task_id("https://app.asana.com/1/1234/project/5678/task/9999")).to eq("9999")
4141
end
4242

43+
it "extracts task ID when subtask is present" do
44+
expect(extract_asana_task_id("https://app.asana.com/1/1234/project/5678/task/9999/subtask/0001")).to eq("9999")
45+
end
46+
4347
it "extracts task ID when project is missing in the URL" do
4448
expect(extract_asana_task_id("https://app.asana.com/1/1234/task/9999")).to eq("9999")
4549
end

0 commit comments

Comments
 (0)