Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
.Veneno.
wechaty
提交
b41018ca
W
wechaty
项目概览
.Veneno.
/
wechaty
与 Fork 源项目一致
Fork自
wechaty / wechaty
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
wechaty
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b41018ca
编写于
6月 12, 2017
作者:
Huan (李卓桓)
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update(license): for test/**/*.ts
上级
fcb7af2c
变更
20
显示空白变更内容
内联
并排
Showing
20 changed file
with
289 addition
and
45 deletion
+289
-45
script/license-header.ts
script/license-header.ts
+3
-3
test/contact.spec.ts
test/contact.spec.ts
+14
-3
test/docker.spec.ts
test/docker.spec.ts
+14
-3
test/electron.spec.ts
test/electron.spec.ts
+14
-3
test/fixture/docker/import-require.ts
test/fixture/docker/import-require.ts
+18
-0
test/fixture/docker/ts-bot.ts
test/fixture/docker/ts-bot.ts
+18
-0
test/fixture/docker/type-error.ts
test/fixture/docker/type-error.ts
+18
-0
test/fixture/docker/with-package-json/with-import-error.ts
test/fixture/docker/with-package-json/with-import-error.ts
+18
-0
test/fixture/docker/with-package-json/with-import.ts
test/fixture/docker/with-package-json/with-import.ts
+18
-0
test/node.spec.ts
test/node.spec.ts
+14
-3
test/puppet-web/bridge.spec.ts
test/puppet-web/bridge.spec.ts
+14
-3
test/puppet-web/browser.spec.ts
test/puppet-web/browser.spec.ts
+14
-3
test/puppet-web/event.spec.ts
test/puppet-web/event.spec.ts
+14
-3
test/puppet-web/puppet-web.spec.ts
test/puppet-web/puppet-web.spec.ts
+14
-3
test/puppet-web/server.spec.ts
test/puppet-web/server.spec.ts
+14
-3
test/puppet-web/watchdog.spec.ts
test/puppet-web/watchdog.spec.ts
+14
-3
test/room.spec.ts
test/room.spec.ts
+14
-3
test/webdriver-phantomjs.spec.ts
test/webdriver-phantomjs.spec.ts
+14
-3
test/webdriver.spec.ts
test/webdriver.spec.ts
+14
-3
test/wechaty.spec.ts
test/wechaty.spec.ts
+14
-3
未找到文件。
script/license-header.ts
浏览文件 @
b41018ca
...
...
@@ -119,6 +119,7 @@ async function updateLicense(file: string): Promise<void> {
const
writeStream
=
createWriteStream
(
tmpFile
)
const
tranStream
=
new
LicenseTransformer
()
console
.
log
(
`Updating LICENSE for file
${
file
}
...`
)
await
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
readStream
.
pipe
(
tranStream
)
...
...
@@ -129,15 +130,14 @@ async function updateLicense(file: string): Promise<void> {
await
promisify
(
linkCallback
)(
tmpFile
,
file
)
await
promisify
(
unlinkCallback
)(
tmpFile
)
}
// const updateLicense = promisify(updateLicenseCb) as
// (file: string) => Promise<void>
async
function
glob
(
pattern
):
Promise
<
string
[]
>
{
return
promisify
(
globCallback
)(
pattern
)
}
async
function
main
():
Promise
<
void
>
{
// const pattern = '{bin/**/*.ts,src/**/*.{ts,js},test/**/*.ts}'
const
pattern
=
'
t.ts
'
const
pattern
=
'
t
est/**/*
.ts
'
const
srcFileList
=
await
glob
(
pattern
)
const
promiseList
=
srcFileList
.
map
(
updateLicense
)
await
Promise
.
all
(
promiseList
)
...
...
test/contact.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/docker.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/electron.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/fixture/docker/import-require.ts
浏览文件 @
b41018ca
/**
* Chatie - https://github.com/chatie
*
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
fs
=
require
(
'
fs
'
)
fs
.
statSync
(
'
/
'
)
...
...
test/fixture/docker/ts-bot.ts
浏览文件 @
b41018ca
/**
* Chatie - https://github.com/chatie
*
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
Wechaty
}
from
'
wechaty
'
const
bot
=
Wechaty
.
instance
()
...
...
test/fixture/docker/type-error.ts
浏览文件 @
b41018ca
/**
* Chatie - https://github.com/chatie
*
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
let
i
=
3
i
=
"
should set to string because it's type is number
"
console
.
log
(
i
)
test/fixture/docker/with-package-json/with-import-error.ts
浏览文件 @
b41018ca
/**
* Chatie - https://github.com/chatie
*
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
NotExist
}
from
'
not-exist-at-all-fdsafasdfafsad
'
const
ne
=
new
NotExist
()
...
...
test/fixture/docker/with-package-json/with-import.ts
浏览文件 @
b41018ca
/**
* Chatie - https://github.com/chatie
*
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
Brolog
}
from
'
brolog
'
const
brolog
=
new
Brolog
()
...
...
test/node.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/puppet-web/bridge.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/puppet-web/browser.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
*
as
fs
from
'
fs
'
...
...
test/puppet-web/event.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/puppet-web/puppet-web.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/puppet-web/server.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/puppet-web/watchdog.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/room.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/webdriver-phantomjs.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
*
as
WebDriver
from
'
selenium-webdriver
'
...
...
test/webdriver.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
test/wechaty.spec.ts
浏览文件 @
b41018ca
/**
*
Wechaty - Wechat for Bot. Connecting ChatBots
*
Chatie - https://github.com/chatie
*
* Licenst: ISC
* https://github.com/wechaty/wechaty
* Copyright 2016-2017 Huan LI <zixia@zixia.net>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import
{
test
}
from
'
ava
'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录