无界面浏览器测试环境 Benv

码农软件 · 软件分类 · 浏览器/JS引擎 · 2019-04-05 11:13:27

软件介绍

Benv是node.js开发的无界面浏览器测试环境,用于测试客户端代码。

示例代码:

var benv = require('benv');beforeEach(function(done) {  benv.setup(function() {    benv.expose({
      $: benv.require('../client/vendor/zepto.js', 'Zepto')
    });    done();
  });
});afterEach(function() {  benv.teardown();
});describe('app.js', function() {  it('renders Wat', function() {    require('../client/app.js');    $('body').html().should.include('Wat!?');
  });
});

本文地址:https://www.codercto.com/soft/d/2904.html

The Shallows

The Shallows

Nicholas Carr / W. W. Norton & Company / 2010-6-15 / USD 26.95

"Is Google making us stupid?" When Nicholas Carr posed that question, in a celebrated Atlantic Monthly cover story, he tapped into a well of anxiety about how the Internet is changing us. He also crys......一起来看看 《The Shallows》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

MD5 加密
MD5 加密

MD5 加密工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具