We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0f8cb6 commit d80f241Copy full SHA for d80f241
src/tests/utils.test.ts
@@ -1,5 +1,20 @@
1
import { describe, it, expect } from 'vitest'
2
-import { getConfigValue, unquoteFromKeys, makeSdObject } from '../utils'
+import {
3
+ addHyphen,
4
+ getConfigValue,
5
+ unquoteFromKeys,
6
+ makeSdObject
7
+} from '../utils'
8
+
9
+describe('addHyphen function', () => {
10
+ it('should add hyphen if the string does not end with hyphen', () => {
11
+ expect(addHyphen('hoge')).toEqual('hoge-')
12
+ })
13
14
+ it('should not add hyphen if the string ends with hyphen', () => {
15
+ expect(addHyphen('hoge-')).toEqual('hoge-')
16
17
+})
18
19
describe('getConfigValue function', () => {
20
it('should return T if T is passed', () => {
0 commit comments