mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-03 05:29:52 +11:00
build and install dagger from source
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
7d447c263c
commit
a4e1b392be
13 changed files with 152 additions and 12 deletions
12
__tests__/util.test.ts
Normal file
12
__tests__/util.test.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import {describe, expect, test} from '@jest/globals';
|
||||
import * as util from '../src/util';
|
||||
|
||||
describe('isValidUrl', () => {
|
||||
test.each([
|
||||
['https://github.com/dagger/dagger.git', true],
|
||||
['https://github.com/dagger/dagger.git#refs/pull/2161/head', true],
|
||||
['v0.2.7', false]
|
||||
])('given %p', async (url, expected) => {
|
||||
expect(util.isValidUrl(url)).toEqual(expected);
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue