mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
Upgrade ng2-alfresco-webscript (karma)
This commit is contained in:
@@ -15,6 +15,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
describe('WebscriptComponent', () => {
|
||||
it('should be upgraded', () => {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
/*
|
||||
import { PLATFORM_PIPES } from '@angular/core';
|
||||
import { describe, expect, it, inject, beforeEachProviders, beforeEach, afterEach, xit } from '@angular/core/testing';
|
||||
|
@@ -43,14 +43,14 @@ import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
|
||||
@Component({
|
||||
selector: 'alfresco-webscript-get',
|
||||
template: `
|
||||
|
||||
<div *ngIf="showData" >
|
||||
<div *ngIf="contentType === 'JSON'" id="webscript-data-JSON" >{{data | json}}</div>
|
||||
<div *ngIf="contentType === 'HTML'" id="webscript-data-HTML" [innerHTML]="data" ></div>
|
||||
<div *ngIf="contentType === 'TEXT'" id="webscript-data-TEXT" >{{data}}</div>
|
||||
<div *ngIf="isDataTableContent()" ><alfresco-datatable id="webscript-datatable-wrapper" [data]="data" ></alfresco-datatable><div>
|
||||
<div *ngIf="showError" id="error">Error during the deserialization of {{data}} as {{contentType}}</div>
|
||||
</div>`
|
||||
<div *ngIf="showData">
|
||||
<div *ngIf="contentType === 'JSON'" id="webscript-data-JSON">{{data | json}}</div>
|
||||
<div *ngIf="contentType === 'HTML'" id="webscript-data-HTML" [innerHTML]="data"></div>
|
||||
<div *ngIf="contentType === 'TEXT'" id="webscript-data-TEXT" >{{data}}</div>
|
||||
<div *ngIf="isDataTableContent()"><alfresco-datatable id="webscript-datatable-wrapper" [data]="data"></alfresco-datatable><div>
|
||||
<div *ngIf="showError" id="error">Error during the deserialization of {{data}} as {{contentType}}</div>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class WebscriptComponent {
|
||||
|
||||
|
Reference in New Issue
Block a user