Skip to main content
Module

x/ci/test/prNumber.test.ts

Get environment variables exposed by CI services
Very Popular
Latest
File
import { assertEquals } from "https://deno.land/std@0.152.0/testing/asserts.ts";
import prNumber from "../utils/prNumber.ts";
Deno.test("havaRightNumber", (): void => { assertEquals(prNumber("https://github.com/owner/repo/pull/10"), "10"); assertEquals(prNumber("pull/10"), "10"); assertEquals( prNumber("https://gitlab.com/owner/repo/merge_requests/10"), "10", );});