mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-15 09:16:44 +00:00
Initial Commit
This commit is contained in:
12
packages/docker/tests/utils-test.ts
Normal file
12
packages/docker/tests/utils-test.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { sanitize } from '../src/utils'
|
||||
|
||||
describe('Utilities', () => {
|
||||
it('should return sanitized image name', () => {
|
||||
expect(sanitize('ubuntu:latest')).toBe('ubuntulatest')
|
||||
})
|
||||
|
||||
it('should return the same string', () => {
|
||||
const validStr = 'teststr8_one'
|
||||
expect(sanitize(validStr)).toBe(validStr)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user