diff --git a/README.md b/README.md index 489b04102ebef3eeabd0a38ec39598ce7affa0bf..10e27e1fd84af2f0d5778472b3235f6184a4c3e5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Wechaty is a Bot Framework for Wechat **Personal** Account that helps you easy c [![Join the chat at https://gitter.im/zixia/wechaty](https://badges.gitter.im/zixia/wechaty.svg)](https://gitter.im/zixia/wechaty?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![node](https://img.shields.io/node/v/wechaty.svg?maxAge=2592000)](https://nodejs.org/) -[![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)]() +[![Repo Size](https://reposs.herokuapp.com/?path=wechaty/wechaty)](https://github.com/wechaty/wechaty) ## Wechaty had rewritten to Typescript. diff --git a/appveyor.yml b/appveyor.yml index b6eff02f5cb5d448b53a57ec0383cf7074dbe3d1..e52d278ec877ff161ac6c4cc2d698710f9c63261 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,7 +6,6 @@ environment: - nodejs_version: "6" - nodejs_version: "7" - # Install scripts. (runs after repo cloning) install: # Get the latest stable version of Node.js or io.js @@ -16,10 +15,8 @@ install: # Post-install test scripts. test_script: - # Output useful info for debugging. - node --version - npm --version - # run tests - npm test # Don't actually build. diff --git a/package.json b/package.json index a61bbb73847b88e8353401a67a28ded01a5bdf82..898ff698d850924df37431e53bb0d9685b3f059c 100755 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "test:phantomjs.bak": "cross-env LC_ALL=C WECHATY_LOG=info WECHATY_HEAD=phantomjs ava --timeout=10m \"dist/{src,test}/**/*.spec.js\"", "test:chrome": "cross-env LC_ALL=C WECHATY_LOG=verbose WECHATY_HEAD=chrome ava --concurrency 0 --ext js --timeout=10m \"dist/{src,test}/**/*.spec.js\"", "testdev": "cross-env LC_ALL=C WECHATY_LOG=silly ava --ext ts --serial --verbose --fail-fast --timeout=3m", - "testdist": "WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m", + "testdist": "cross-env WECHATY_LOG=SILLY WECHATY_HEAD=chrome ava --ext ts --verbose --fail-fast --timeout=2m", "ava": "cross-env LC_ALL=C WECHATY_LOG=verbose ts-node node_modules/.bin/ava \"{src,test}/**/*.spec.js\"", "start": "ts-node bin/client", "dev": "ts-node dev.ts", @@ -90,7 +90,7 @@ "ava": "^0.16.0", "body-parser": "^1.15.2", "brolog": "^0.3.10", - "chromedriver": "^2.23.1", + "chromedriver": "^2.24.1", "express": "^4.13.4", "is-ci": "^1.0.9", "phantomjs-prebuilt": "^2.1.13", diff --git a/src/config.ts b/src/config.ts index c90f31e448fe1db6c684ea6ddf1b7adfae469f34..d7ce14e5ecd246410e1771dec1c434b6fd558304 100644 --- a/src/config.ts +++ b/src/config.ts @@ -98,7 +98,7 @@ function isWechatyDocker() { } const cgroup = '/proc/1/cgroup' - try { fs.statSync(cgroup) /* .isFile() */ } + try { fs.statSync(cgroup).isFile() } catch (e) { return false } const line = execSync(`sort -n ${cgroup} | head -1`)