【发布时间】:2017-03-16 20:35:08
【问题描述】:
我对 Zombie.js 测试有点陌生,而且很难搜索,所以我会在这里问...
示例: (全局变量)
hello = {"world" : "...."}
所以我测试了类似的东西:
describe('Check varibles', function() {
it('If ---> hello <--- exits', function(done) {
browser.assert.global('hello');
done();
});
it('If ---> hello.world <--- exits', function(done) {
// ????
done();
});
});
我可以检查hello 是否退出。 但是如何检查 hello.world` 是否退出?
我试过了:
browser.assert.global('hello.world'); // AssertionError: undefined == true
【问题讨论】:
标签: javascript node.js testing zombie.js