本文整理汇总了TypeScript中nodeunit.Test.deepEqual方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Test.deepEqual方法的具体用法?TypeScript Test.deepEqual怎么用?TypeScript Test.deepEqual使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类nodeunit.Test
的用法示例。
在下文中一共展示了Test.deepEqual方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1:
'getNavigation returns td.output.NavigationItem in which all url extensions are replaced with .md': (test: Test) => {
// stub super method
const original = td.output.DefaultTheme.prototype.getNavigation;
td.output.DefaultTheme.prototype.getNavigation = () => {
return {
title: 'title',
url: 'a.html',
dedicatedUrls: [
'b.html',
'c.html#1',
'd.html'
],
parent: null,
children: [
{
title: 'title',
url: 'e.html#2',
dedicatedUrls: [
'f.html',
'g.html#3'
],
parent: null,
children: [
{
title: 'title',
url: 'h.html',
dedicatedUrls: [
'i.html#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.html#5',
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'
//.........这里部分代码省略.........