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

switch from tape to ava

上级 50b8a25a
'use strict'
import { test } from 'ava'
const sinon = require('sinon')
const test = require('tape')
import { execSync } from 'child_process'
import sinon from 'sinon'
const {execSync} = require('child_process')
const log = require('../src/npmlog-env')
import { log } from '../'
const docker = !!process.env.WECHATY_DOCKER
!docker && test('Docker test skipped', function(t) {
t.pass('not in docker, skip docker tests')
t.end()
})
docker && test('Docker smoking test', function(t) {
const n = execSync('ps | grep Xvfb | wc -l')
t.equal(n, 1, 'should has Xvfb started')
t.end()
t.is(n, 1, 'should has Xvfb started')
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册