From e7a8db2bb331aeb55d243e6f7498f22f10e100f0 Mon Sep 17 00:00:00 2001 From: "Zhuohuan LI (CARPE DIEM)" Date: Mon, 29 Aug 2016 23:25:17 +0800 Subject: [PATCH] switch from tape to ava --- test/docker.spec.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/test/docker.spec.js b/test/docker.spec.js index f19c62a1..48b1b3fd 100644 --- a/test/docker.spec.js +++ b/test/docker.spec.js @@ -1,22 +1,17 @@ -'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') }) -- GitLab