mirror of
https://github.com/rlespinasse/github-slug-action.git
synced 2026-05-17 18:35:07 +00:00
BREAKING CHANGE: The action implementation move from container action to node.js action Co-authored-by: Romain Lespinasse <romain.lespinasse@gmail.com>
11 lines
279 B
TypeScript
11 lines
279 B
TypeScript
import {shortsha} from '../src/slug'
|
|
|
|
function test_short_sha(input: string, expected: string) {
|
|
let actual = shortsha(input)
|
|
expect(actual).toEqual(expected)
|
|
}
|
|
|
|
test('short_sha: long hash', () => {
|
|
test_short_sha('a35a1a486a260cfd99c5b6f8c6034a2929ba9b3f', 'a35a1a48')
|
|
})
|