Skip to content

Commit bd3b9f5

Browse files
authored
hotfix 함수 자신이 정의할수있도록 변경
1 parent f7f8305 commit bd3b9f5

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/example/src/2week/compose/compose.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ import { compose } from './compose'
22

33
describe('pop', () => {
44
it('더하기 함수와 곱하기합수를 합성했습니다.', () => {
5-
function add(a: number, b: number) {
6-
return a + b
7-
}
8-
function multiply(a: number, b: number) {
9-
return a * b
10-
}
5+
// add함수!
6+
// multiply함수!
117
const result = compose(4, add(7), multiply(5))
128
assert(result).toBe(55)
139
})

0 commit comments

Comments
 (0)