mirror of
https://github.com/actions/runner-container-hooks.git
synced 2025-12-14 16:46:43 +00:00
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
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)
|
|
})
|
|
})
|