本文整理匯總了TypeScript中nodeunit.Test.done方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Test.done方法的具體用法?TypeScript Test.done怎麽用?TypeScript Test.done使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類nodeunit.Test
的用法示例。
在下文中一共展示了Test.done方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: testCrazyhouse
export function testCrazyhouse(test: Test) {
var fen = 'r4b1N~/1ppk1P2/p1b5/6p1/8/1PBPPq2/P1PR1P2/1K4N1/PNBRPPPrqnn b - - 71 36';
test.equal(pv2san('crazyhouse', fen, false, 'N@a3 b1b2 R@b1'.split(' '), -2), '36... N@a3+ 37. Kb2 R@b1#');
test.done();
}
示例2: testKingMove
export function testKingMove(test: Test) {
test.equal(pv2san('standard', initialFen, false, 'e2e4 e7e5 e1e2'.split(' ')), '1. e4 e5 2. Ke2');
test.done();
}
示例3:
//.........這裏部分代碼省略.........
dedicatedUrls: [
'k.html#6',
'l.html',
'm.html',
'n.html#7'
],
parent: null,
children: null,
cssClasses: 'bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
}
],
cssClasses: 'foo bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
};
};
test.deepEqual(
MarkdownTheme.prototype.getNavigation(null),
{
title: 'title',
url: 'a.md',
dedicatedUrls: [
'b.md',
'c.md#1',
'd.md'
],
parent: null,
children: [
{
title: 'title',
url: 'e.md#2',
dedicatedUrls: [
'f.md',
'g.md#3'
],
parent: null,
children: [
{
title: 'title',
url: 'h.md',
dedicatedUrls: [
'i.md#4'
],
parent: null,
children: [],
cssClasses: 'bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
}
],
cssClasses: 'bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
},
{
title: 'title',
url: 'j.md#5',
dedicatedUrls: [
'k.md#6',
'l.md',
'm.md',
'n.md#7'
],
parent: null,
children: null,
cssClasses: 'bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
}
],
cssClasses: 'foo bar',
isLabel: true,
isVisible: true,
isCurrent: true,
isGlobals: true,
isInPath: true
}
);
td.output.DefaultTheme.prototype.getNavigation = original;
test.done();
}
示例4: function
'the karma export should be present': function(test: Test) {
test.ok(publishModule['preprocessor:typescript']);
test.done();
}