-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
217 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Contributing | ||
|
||
## Test Code | ||
|
||
테스트 코드를 작성할 때 `mocha` 테스트 러너의 실행 함수는 모두 `function() {}` 으로 작성해주세요. | ||
`mocha`의 `context`에 접근하기 위해서는 `this` 키워드를 사용해야 합니다. | ||
화살표 함수를 사용하면 `this` 키워드를 사용할 수 없어요! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Test | ||
|
||
FxSVG 의 모든 함수는 유닛 테스트를 작성하고 있습니다. | ||
We write unit tests for all functions in FxSVG. | ||
|
||
각 함수의 유닛 테스트는 함수 본체 파일(`name.index.js`) 과 같은 디렉토리에 `name.spec.js` 라는 이름의 파일에 작성합니다. | ||
Unit test file name is `name.spec.js`. | ||
The test file is in the same directory where the function file(`name.index.js`) is. | ||
|
||
유닛 테스트를 실행하고 싶은 경우 `npm run test:browser` 명령어를 실행하고 | ||
웹브라우저를 통해 `http://localhost:8080/test` 로 접속하면 됩니다. | ||
When you run tests, | ||
|
||
1. run `npm run test:server` | ||
2. go to `http://localhost:8080/test` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Test | ||
|
||
FxSVG 의 모든 함수는 유닛 테스트를 작성하고 있습니다. | ||
|
||
각 함수의 유닛 테스트는 함수 본체 파일(`name.index.js`) 과 같은 디렉토리에 `name.spec.js` 라는 이름의 파일에 작성합니다. | ||
|
||
유닛 테스트를 실행하고 싶은 경우 | ||
|
||
1. `npm run test:server` 명령어를 실행하고 | ||
2. `http://localhost:8080/test` 로 접속하면 됩니다. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[`<svg></svg>` 커링](../../doc/SVG_CURRYING.md)이 적용된 함수입니다. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.