Skip to content

Commit f4d914f

Browse files
CircleCI で test を実行
1 parent 6603b55 commit f4d914f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

circle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ jobs:
6060
- run:
6161
name: check lint
6262
command: yarn lint
63+
- run:
64+
name: jest
65+
command: yarn test
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import * as scoreEditorDecorator from '../../../app/frontend/decorators/scoreEditorDecorator'
2+
3+
test('parse multi-line chord progression', () => {
4+
expect(scoreEditorDecorator.parseChordProgression('Gm/CF69|Gm/C\nAbGaug7|'))
5+
.toEqual(
6+
[
7+
[
8+
[['G', 'm/C'], ['F', '69']], [['G', 'm/C']]
9+
],
10+
[
11+
[['Ab', ''], ['G', 'aug7']]
12+
]
13+
]
14+
)
15+
})

0 commit comments

Comments
 (0)