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

clean(code): clean warnings

上级 3b9ab5a2
......@@ -51,7 +51,7 @@ script:
# - if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:phantomjs; fi
- if [ "$TRAVIS_OS_NAME" == 'linux' ]; then WECHATY_LOG=silly npm run test:chrome; fi
- if [ "$TRAVIS_OS_NAME" == 'osx' ]; then WECHATY_LOG=verbose npm run nycava; fi
- npm run test:npm && echo 'Npm packing is passed the test and ready for publish'
- npm run test:npm && echo 'Npm packing test is passed'
notifications:
webhooks:
......
......@@ -40,7 +40,7 @@
"testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=2m",
"testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m",
"test:pack": "npm run dist && rm -fr package wechaty-*.*.*.tgz && npm pack --verbose && tar zxvf wechaty-*.*.*.tgz",
"test:npm": "export TMPDIR=/tmp/wechaty.$$ && npm pack && mkdir $TMPDIR && mv wechaty-*.*.*.tgz $TMPDIR && cp example/smoke-testing.js $TMPDIR && cd $TMPDIR && npm i wechaty-*.*.*.tgz && node smoke-testing.js",
"test:npm": "export TMPDIR=/tmp/wechaty.$$ && npm pack && mkdir $TMPDIR && mv wechaty-*.*.*.tgz $TMPDIR && cp example/smoke-testing.js $TMPDIR && cd $TMPDIR && npm init -y && npm i wechaty-*.*.*.tgz && node smoke-testing.js",
"io-client": "ts-node bin/io-client",
"dev": "ts-node dev.ts",
"demo": "ts-node example/ding-dong-bot.ts",
......
......@@ -5,17 +5,17 @@
* https://github.com/wechaty/wechaty
*
*/
import * as fs from 'fs'
import * as fs from 'fs'
import { test } from 'ava'
import {
Config,
log,
} from '../../'
} from '../../'
import {
Browser,
} from '../../src/puppet-web/'
Browser,
} from '../../src/puppet-web/'
const PROFILE = Config.DEFAULT_PROFILE + '-' + process.pid + '-'
let profileCounter = 1
......@@ -88,7 +88,7 @@ test('Cookie smoking test', async t => {
})
test('Cookie save/load', async t => {
const profileName = PROFILE + profileCounter++ + 'wechaty.json'
const profileName = PROFILE + (profileCounter++)
let browser = new Browser({
head: Config.head,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册