摘要: 1、Jasmine 之 Spies 代码示例: describe("A spy", function() { var foo, bar = null; beforeEach(function() { foo = { setBar: function(value) { bar = value; } } 阅读全文
posted @ 2020-04-23 16:09 冰凝^ 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1、套件(suites) (describe 套件):描述测试内容 代码示例: describe("A suite", function() { it("contains spec with an expectation", function() { expect(true).toBe(true); 阅读全文
posted @ 2020-04-23 13:56 冰凝^ 阅读(320) 评论(0) 推荐(0) 编辑