318 lines
11 KiB
HTML
318 lines
11 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Code coverage report for webparts/iocTests/IocTestsWebPart.ts</title>
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="..\..\prettify.css" />
|
|
<link rel="stylesheet" href="..\..\base.css" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style type='text/css'>
|
|
.coverage-summary .sorter {
|
|
background-image: url(..\..\sort-arrow-sprite.png);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class='wrapper'>
|
|
<div class='pad1'>
|
|
<h1>
|
|
<a href="..\..\index.html">All files</a> / <a href="index.html">webparts/iocTests</a> IocTestsWebPart.ts
|
|
</h1>
|
|
<div class='clearfix'>
|
|
<div class='fl pad1y space-right2'>
|
|
<span class="strong">0% </span>
|
|
<span class="quiet">Statements</span>
|
|
<span class='fraction'>0/28</span>
|
|
</div>
|
|
<div class='fl pad1y space-right2'>
|
|
<span class="strong">0% </span>
|
|
<span class="quiet">Branches</span>
|
|
<span class='fraction'>0/8</span>
|
|
</div>
|
|
<div class='fl pad1y space-right2'>
|
|
<span class="strong">0% </span>
|
|
<span class="quiet">Functions</span>
|
|
<span class='fraction'>0/5</span>
|
|
</div>
|
|
<div class='fl pad1y space-right2'>
|
|
<span class="strong">0% </span>
|
|
<span class="quiet">Lines</span>
|
|
<span class='fraction'>0/27</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class='status-line low'></div>
|
|
<pre><table class="coverage">
|
|
<tr><td class="line-count quiet">1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15
|
|
16
|
|
17
|
|
18
|
|
19
|
|
20
|
|
21
|
|
22
|
|
23
|
|
24
|
|
25
|
|
26
|
|
27
|
|
28
|
|
29
|
|
30
|
|
31
|
|
32
|
|
33
|
|
34
|
|
35
|
|
36
|
|
37
|
|
38
|
|
39
|
|
40
|
|
41
|
|
42
|
|
43
|
|
44
|
|
45
|
|
46
|
|
47
|
|
48
|
|
49
|
|
50
|
|
51
|
|
52
|
|
53
|
|
54
|
|
55
|
|
56
|
|
57
|
|
58
|
|
59
|
|
60
|
|
61
|
|
62
|
|
63
|
|
64
|
|
65
|
|
66
|
|
67
|
|
68
|
|
69
|
|
70
|
|
71
|
|
72
|
|
73
|
|
74
|
|
75
|
|
76
|
|
77
|
|
78
|
|
79
|
|
80
|
|
81
|
|
82
|
|
83
|
|
84
|
|
85</td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-neutral"> </span>
|
|
<span class="cline-any cline-no"> </span>
|
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"><span class="cstat-no" title="statement not covered" >import * as React from 'react';</span>
|
|
<span class="cstat-no" title="statement not covered" >import * as ReactDom from 'react-dom';</span>
|
|
<span class="cstat-no" title="statement not covered" >import { Version, Environment, EnvironmentType } from '@microsoft/sp-core-library';</span>
|
|
<span class="cstat-no" title="statement not covered" >import {</span>
|
|
BaseClientSideWebPart,
|
|
IPropertyPaneConfiguration,
|
|
PropertyPaneTextField
|
|
} from '@microsoft/sp-webpart-base';
|
|
|
|
<span class="cstat-no" title="statement not covered" >import * as strings from 'IocTestsWebPartStrings';</span>
|
|
<span class="cstat-no" title="statement not covered" >import IocTests, { IocTestsProps } from './components/IocTests';</span>
|
|
<span class="cstat-no" title="statement not covered" >import PnPListsService from '../../common/services/Lists/PnPListsService';</span>
|
|
import IListsService from '../../common/services/Lists/IListsService';
|
|
<span class="cstat-no" title="statement not covered" >import MockListsService from '../../common/services/Lists/MockListsService';</span>
|
|
import ICacheProvider from '../../common/providers/Cache/ICacheProvider';
|
|
<span class="cstat-no" title="statement not covered" >import MockCacheProvider from '../../common/providers/Cache/MockCacheProvider';</span>
|
|
<span class="cstat-no" title="statement not covered" >import StorageCacheProvider, { StorageType } from '../../common/providers/Cache/StorageCacheProvider';</span>
|
|
import ILogProvider from '../../common/providers/Log/ILogProvider';
|
|
<span class="cstat-no" title="statement not covered" >import MockLogProvider from '../../common/providers/Log/MockLogProvider';</span>
|
|
<span class="cstat-no" title="statement not covered" >import ConsoleLogProvider from '../../common/providers/Log/ConsoleLogProvider';</span>
|
|
|
|
export interface IIocTestsWebPartProps {
|
|
description: string;
|
|
}
|
|
|
|
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >export default class IocTestsWebPart extends <span class="cstat-no" title="statement not covered" >BaseClientSideWebPart<IIocTestsWebPartProps> {</span></span></span>
|
|
|
|
<span class="fstat-no" title="function not covered" > public <span class="cstat-no" title="statement not covered" >render(): void {</span></span>
|
|
const useMockServices = <span class="cstat-no" title="statement not covered" >Environment.type !== EnvironmentType.SharePoint && Environment.type !== EnvironmentType.ClassicSharePoint;</span>
|
|
|
|
const listsService: IListsService = <span class="cstat-no" title="statement not covered" >useMockServices </span>
|
|
? new MockListsService([{ Title: "Mocked List", DefaultViewUrl: "https://bing.com" }])
|
|
: new PnPListsService(this.context.pageContext.web.absoluteUrl);
|
|
|
|
const cacheProvider: ICacheProvider = <span class="cstat-no" title="statement not covered" >useMockServices </span>
|
|
? new MockCacheProvider()
|
|
: new StorageCacheProvider(StorageType.local);
|
|
|
|
const logProvider: ILogProvider = <span class="cstat-no" title="statement not covered" >useMockServices </span>
|
|
? new MockLogProvider()
|
|
: new ConsoleLogProvider(this.context);
|
|
|
|
const element: React.ReactElement<IocTestsProps> = <span class="cstat-no" title="statement not covered" >React.createElement(</span>
|
|
IocTests,
|
|
{
|
|
listsService: listsService,
|
|
cacheProvider: cacheProvider,
|
|
logProvider: logProvider
|
|
}
|
|
);
|
|
|
|
<span class="cstat-no" title="statement not covered" > ReactDom.render(element, this.domElement);</span>
|
|
}
|
|
|
|
<span class="fstat-no" title="function not covered" > protected <span class="cstat-no" title="statement not covered" >onDispose(): void {</span></span>
|
|
<span class="cstat-no" title="statement not covered" > ReactDom.unmountComponentAtNode(this.domElement);</span>
|
|
}
|
|
|
|
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" > protected get dataVersion(): Version {</span></span>
|
|
<span class="cstat-no" title="statement not covered" > return Version.parse('1.0');</span>
|
|
}
|
|
|
|
<span class="fstat-no" title="function not covered" > protected <span class="cstat-no" title="statement not covered" >getPropertyPaneConfiguration(): IPropertyPaneConfiguration {</span></span>
|
|
<span class="cstat-no" title="statement not covered" > return {</span>
|
|
pages: [
|
|
{
|
|
header: {
|
|
description: strings.PropertyPaneDescription
|
|
},
|
|
groups: [
|
|
{
|
|
groupName: strings.BasicGroupName,
|
|
groupFields: [
|
|
PropertyPaneTextField('description', {
|
|
label: strings.DescriptionFieldLabel
|
|
})
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|
|
}
|
|
<span class="cstat-no" title="statement not covered" >}</span>
|
|
</pre></td></tr>
|
|
</table></pre>
|
|
<div class='push'></div><!-- for sticky footer -->
|
|
</div><!-- /wrapper -->
|
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
Code coverage
|
|
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri Mar 01 2019 14:43:26 GMT+1100 (AUS Eastern Summer Time)
|
|
</div>
|
|
</div>
|
|
<script src="..\..\prettify.js"></script>
|
|
<script>
|
|
window.onload = function () {
|
|
if (typeof prettyPrint === 'function') {
|
|
prettyPrint();
|
|
}
|
|
};
|
|
</script>
|
|
<script src="..\..\sorter.js"></script>
|
|
</body>
|
|
</html>
|