mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-13 01:52:20 +08:00
13 lines
383 B
TypeScript
13 lines
383 B
TypeScript
import {createInlineArray} from './arrayUtils'
|
|
|
|
describe('array utilities', () => {
|
|
it('creates an inline array', () => {
|
|
const strings = ['str1', 'str2', 'str3']
|
|
expect(createInlineArray(strings)).toBe(strings.join(','))
|
|
|
|
const string = 'str1'
|
|
expect(createInlineArray([string])).toBe(string)
|
|
expect(createInlineArray(string)).toBe(string)
|
|
})
|
|
})
|