The Object interface&The QUnit interface
2016-04-13 16:38
525 查看
require:
'intern!object',
'intern/chai!assert',
'intern!qunit',
'intern/chai!expect',
function:
qunit.module('Suite name');
qunit.test('Test foo', function (assert) {
assert.expect(1);
assert.ok(true, 'Everything is OK');
});
registerSuite({
name: 'utils',
uuid: function () {
assert.isTrue(validUUIDRegex.test(uuid), 'identifier should be a valid UUID');
},
});
✓ Suite name - Test foo (0s)
PASS: Suite name - Test foo (0ms)
0/1 tests failed
✓ utils - uuid (0.177s)
PASS: utils - uuid (177ms)
✓ utils - pluralize (0s)
PASS: utils - pluralize (0ms)
✓ utils - store (0s)
PASS: utils - store (0ms)
✓ utils - tmp (0s)
PASS: utils - tmp (0ms)
0/4 tests failed
0/5 tests failed
相关文章推荐
- ObjectOutputStream 和 ObjectInputStream的使用
- ObjectOutputStream 和 ObjectInputStream的使用
- ObjectOutputStream 和 ObjectInputStream的使用
- Objective-c与javascript交互[详细解读2]
- PHP中把stdClass Object转array的几个方法
- 4.Object Types
- 《Effective Objective-C 2.0:编写高质量iOS与OS X代码的52个有效方法》 笔记2 多用字面量语法,少用与之等价的方法
- 《Effective Objective-C 2.0:编写高质量iOS与OS X代码的52个有效方法》 笔记1
- Objective-C之run loop详解
- Objective-C的Block
- VLC调试:增加messages.c日志函数,在无vlc_object_t下打印日志
- toStirng()与Object.prototype.toString.call()方法浅谈
- Object.wait()的使用方法示例(转)
- OC学习日记Day2:#include、#import和@class的工作原理
- delphi中通过CreateOleObject操控Word
- 在Eclipse中遇到The type java.lang.Object cannot be resolved. 解决办法
- AttributeError: 'DisabledBackend' object has no attribute '_get_task_meta_for'
- Objective-C 类似网易首页滚动导航的效果
- 匿名对象和object的转换
- springmvc controller入参Object与前台ajax发送注意项