提交 537c23d2 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

rename /test to /tests (#1127)

上级 8e0850de
...@@ -69,5 +69,5 @@ package-lock.json ...@@ -69,5 +69,5 @@ package-lock.json
.babel.json .babel.json
.idea .idea
example/.config examples/.config
example/.pki examples/.pki
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# #
/docs/ @lijiarui @hczhcz @TingYinHelen @ax4 /docs/ @lijiarui @hczhcz @TingYinHelen @ax4
/example/ @Gcaufy @hczhcz /examples/ @Gcaufy @hczhcz
/src/puppet-web/bridge.*.ts @mukaiu /src/puppet-web/bridge.*.ts @mukaiu
/src/puppet-web/browser.ts @binsee /src/puppet-web/browser.ts @binsee
/src/puppet-web/browser-driver.*.ts @xjchengo /src/puppet-web/browser-driver.*.ts @xjchengo
......
...@@ -50,7 +50,7 @@ Wechaty.instance() // Singleton ...@@ -50,7 +50,7 @@ Wechaty.instance() // Singleton
This bot can log all messages to the console. This bot can log all messages to the console.
You can find more examples from [Wiki](https://github.com/chatie/wechaty/wiki/Example) and [Example Directory](https://github.com/chatie/wechaty/blob/master/example/). You can find more examples from [Wiki](https://github.com/chatie/wechaty/wiki/Examples) and [Example Directory](https://github.com/chatie/wechaty/blob/master/examples/).
GETTING STARTED GETTING STARTED
--------------- ---------------
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* @deprecated * @deprecated
* Use hot-import-bot instead * Use hot-import-bot instead
* See: https://github.com/Chatie/wechaty/tree/master/example/hot-import-bot * See: https://github.com/Chatie/wechaty/tree/master/examples/hot-import-bot
* *
* DEV: docker run -ti -e --rm --volume="$(pwd)":/bot zixia/wechaty index.js * DEV: docker run -ti -e --rm --volume="$(pwd)":/bot zixia/wechaty index.js
* PROD: docker run -ti -e NODE_ENV=production --rm --volume="$(pwd)":/bot zixia/wechaty index.js * PROD: docker run -ti -e NODE_ENV=production --rm --volume="$(pwd)":/bot zixia/wechaty index.js
...@@ -113,7 +113,7 @@ console.log(` ...@@ -113,7 +113,7 @@ console.log(`
ATTENTION: This example is DEPRECATED. ATTENTION: This example is DEPRECATED.
Please see https://github.com/Chatie/wechaty/tree/master/example/hot-reload-bot instead. Please see https://github.com/Chatie/wechaty/tree/master/examples/hot-reload-bot instead.
`) `)
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"test:win32": "npm run test:unit:safe", "test:win32": "npm run test:unit:safe",
"test:debug": "blue-tape -r ts-node/register -r source-map-support/register src/puppet-web/bridge.spec.ts", "test:debug": "blue-tape -r ts-node/register -r source-map-support/register src/puppet-web/bridge.spec.ts",
"io-client": "ts-node bin/io-client", "io-client": "ts-node bin/io-client",
"demo": "ts-node example/ding-dong-bot.ts", "demo": "ts-node examples/ding-dong-bot.ts",
"start": "npm run demo" "start": "npm run demo"
}, },
"git": { "git": {
......
...@@ -25,8 +25,8 @@ case "$1" in ...@@ -25,8 +25,8 @@ case "$1" in
;; ;;
test) test)
echo "bats test/" echo "bats tests/"
IMAGE_NAME="$imageName" bats test/ IMAGE_NAME="$imageName" bats tests/
echo docker run -ti $options -v /dev/shm:/dev/shm "$imageName" test echo docker run -ti $options -v /dev/shm:/dev/shm "$imageName" test
exec docker run -ti $options -v /dev/shm:/dev/shm "$imageName" test exec docker run -ti $options -v /dev/shm:/dev/shm "$imageName" test
......
...@@ -138,7 +138,7 @@ async function glob(pattern): Promise<string[]> { ...@@ -138,7 +138,7 @@ async function glob(pattern): Promise<string[]> {
} }
async function main(): Promise<void> { async function main(): Promise<void> {
const pattern = '{bin/**/*.ts,example/**/*.{js,ts},src/**/*.{ts,js},test/**/*.ts}' const pattern = '{bin/**/*.ts,examples/**/*.{js,ts},src/**/*.{ts,js},tests/**/*.ts}'
// const pattern = 't.ts' // const pattern = 't.ts'
const srcFileList = await glob(pattern) const srcFileList = await glob(pattern)
const promiseList = srcFileList.map(updateLicense) const promiseList = srcFileList.map(updateLicense)
......
...@@ -102,7 +102,7 @@ const specialContactList: string[] = [ ...@@ -102,7 +102,7 @@ const specialContactList: string[] = [
* All wechat contacts(friend) will be encapsulated as a Contact. * All wechat contacts(friend) will be encapsulated as a Contact.
* *
* `Contact` is `Sayable`, * `Contact` is `Sayable`,
* [Example/Contact-Bot]{@link https://github.com/Chatie/wechaty/blob/master/example/contact-bot.ts} * [Example/Contact-Bot]{@link https://github.com/Chatie/wechaty/blob/master/examples/contact-bot.ts}
*/ */
export class Contact implements Sayable { export class Contact implements Sayable {
private static pool = new Map<string, Contact>() private static pool = new Map<string, Contact>()
......
...@@ -31,7 +31,7 @@ import Contact from './contact' ...@@ -31,7 +31,7 @@ import Contact from './contact'
* 2. receive request(in friend event) * 2. receive request(in friend event)
* 3. confirmation friendship(friend event) * 3. confirmation friendship(friend event)
* *
* [Example/Friend-Bot]{@link https://github.com/Chatie/wechaty/blob/master/example/friend-bot.ts} * [Example/Friend-Bot]{@link https://github.com/Chatie/wechaty/blob/master/examples/friend-bot.ts}
*/ */
export abstract class FriendRequest { export abstract class FriendRequest {
......
...@@ -53,7 +53,7 @@ export type TypeName = 'attachment' ...@@ -53,7 +53,7 @@ export type TypeName = 'attachment'
* All wechat messages will be encapsulated as a Message. * All wechat messages will be encapsulated as a Message.
* *
* `Message` is `Sayable`, * `Message` is `Sayable`,
* [Example/Ding-Dong-Bot]{@link https://github.com/Chatie/wechaty/blob/master/example/ding-dong-bot.ts} * [Example/Ding-Dong-Bot]{@link https://github.com/Chatie/wechaty/blob/master/examples/ding-dong-bot.ts}
*/ */
export class Message implements Sayable { export class Message implements Sayable {
/** /**
...@@ -186,7 +186,7 @@ export class Message implements Sayable { ...@@ -186,7 +186,7 @@ export class Message implements Sayable {
/** /**
* Reply a Text or Media File message to the sender. * Reply a Text or Media File message to the sender.
* *
* @see {@link https://github.com/Chatie/wechaty/blob/master/example/ding-dong-bot.ts|Example/ding-dong-bot} * @see {@link https://github.com/Chatie/wechaty/blob/master/examples/ding-dong-bot.ts|Example/ding-dong-bot}
* @param {(string | MediaMessage)} textOrMedia * @param {(string | MediaMessage)} textOrMedia
* @param {(Contact|Contact[])} [replyTo] * @param {(Contact|Contact[])} [replyTo]
* @returns {Promise<any>} * @returns {Promise<any>}
......
...@@ -80,7 +80,7 @@ export interface MemberQueryFilter { ...@@ -80,7 +80,7 @@ export interface MemberQueryFilter {
* All wechat rooms(groups) will be encapsulated as a Room. * All wechat rooms(groups) will be encapsulated as a Room.
* *
* `Room` is `Sayable`, * `Room` is `Sayable`,
* [Example/Room-Bot]{@link https://github.com/Chatie/wechaty/blob/master/example/room-bot.ts} * [Example/Room-Bot]{@link https://github.com/Chatie/wechaty/blob/master/examples/room-bot.ts}
*/ */
export class Room extends EventEmitter implements Sayable { export class Room extends EventEmitter implements Sayable {
private static pool = new Map<string, Room>() private static pool = new Map<string, Room>()
......
...@@ -294,7 +294,7 @@ export class Wechaty extends EventEmitter implements Sayable { ...@@ -294,7 +294,7 @@ export class Wechaty extends EventEmitter implements Sayable {
* @param {WechatyEventFunction} listener - Depends on the WechatyEvent * @param {WechatyEventFunction} listener - Depends on the WechatyEvent
* @return {Wechaty} - this for chain * @return {Wechaty} - this for chain
* *
* More Example Gist: [Example/Friend-Bot]{@link https://github.com/wechaty/wechaty/blob/master/example/friend-bot.ts} * More Example Gist: [Example/Friend-Bot]{@link https://github.com/wechaty/wechaty/blob/master/examples/friend-bot.ts}
* *
* @example <caption>Event:scan </caption> * @example <caption>Event:scan </caption>
* wechaty.on('scan', (url: string, code: number) => { * wechaty.on('scan', (url: string, code: number) => {
......
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
] ]
, "include": [ , "include": [
"bin/*.ts" "bin/*.ts"
, "script/**/*.ts" , "scripts/**/*.ts"
, "example/**/*.ts" , "examples/**/*.ts"
, "src/**/*.ts" , "src/**/*.ts"
, "test/**/*.spec.ts" , "tests/**/*.spec.ts"
, "bot/**/*.ts" , "bot/**/*.ts"
, "app/**/*.ts" , "app/**/*.ts"
] ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册