From aa2cb879ec4497cca1db650ecbed791c595f75e4 Mon Sep 17 00:00:00 2001 From: MasatoMakino Date: Thu, 6 May 2021 12:56:06 +0900 Subject: [PATCH] fix : file path of unit tests in documents related : #583 --- docs/contributor_guide.md | 2 +- docs/contributor_guide_zh-CN.md | 2 +- docs/user_guide.md | 2 +- docs/user_guide_zh-CN.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/contributor_guide.md b/docs/contributor_guide.md index 5d94112..23a6a2d 100644 --- a/docs/contributor_guide.md +++ b/docs/contributor_guide.md @@ -80,7 +80,7 @@ The one that happens more frequently is the first one, but the second one has ha ### Unit tests -Tests are in the `test/unit/tests.js` file. +Tests are in the `src/tests.ts` file. The tests are executed using [nodeunit](https://www.npmjs.com/package/nodeunit). diff --git a/docs/contributor_guide_zh-CN.md b/docs/contributor_guide_zh-CN.md index ac0ab10..7ab6104 100644 --- a/docs/contributor_guide_zh-CN.md +++ b/docs/contributor_guide_zh-CN.md @@ -76,7 +76,7 @@ npm test ### 单元测试 -测试用例在`test/unit/tests.js`文件中. +测试用例在`src/tests.ts`文件中. 测试使用[nodeunit](https://www.npmjs.com/package/nodeunit)执行. diff --git a/docs/user_guide.md b/docs/user_guide.md index 11adfb1..9d37224 100644 --- a/docs/user_guide.md +++ b/docs/user_guide.md @@ -117,7 +117,7 @@ var currentTime = player.currentTime TWEEN.update(currentTime) ``` -We use explicit time values for the unit tests. You can have a look at [tests.js](../test/unit/tests.js) to see how we call TWEEN.update() with different values in order to simulate time passing. +We use explicit time values for the unit tests. You can have a look at [tests.ts](../src/tests.ts) to see how we call TWEEN.update() with different values in order to simulate time passing. ## Controlling a tween diff --git a/docs/user_guide_zh-CN.md b/docs/user_guide_zh-CN.md index 21d1060..b57ce51 100644 --- a/docs/user_guide_zh-CN.md +++ b/docs/user_guide_zh-CN.md @@ -117,7 +117,7 @@ var currentTime = player.currentTime TWEEN.update(currentTime) ``` -我们使用明确的时间值进行单元测试。你可以看下 [tests.js](https://github.com/tweenjs/tween.js/blob/master/test/unit/tests.js) 这个例子,看看我们如何用不同的值调用`TWEEN.update()` 来模拟时间传递。 +我们使用明确的时间值进行单元测试。你可以看下 [tests.ts](../src/tests.ts) 这个例子,看看我们如何用不同的值调用`TWEEN.update()` 来模拟时间传递。 ## 控制一个补间