UNPKG

ng2-alfresco-aos-editonline

Version:
1 lines 3.61 kB
{"version":3,"file":"/home/mikel/workspaces/bee/2017-global-hackaton/ng2-alfresco-aos-editonline/src/ng2-alfresco-aos-editonline.component.spec.ts","sourceRoot":"","sources":["/home/mikel/workspaces/bee/2017-global-hackaton/ng2-alfresco-aos-editonline/src/ng2-alfresco-aos-editonline.component.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;AAEH,iDAAyE;AAEzE,uDAA2H;AAE3H,sGAAiG;AAEjG,QAAQ,CAAC,6BAA6B,EAAE;IAEpC,IAAI,SAA4C,CAAC;IACjD,IAAI,OAA4D,CAAC;IACjE,IAAI,KAAmB,CAAC;IACxB,IAAI,OAAY,CAAC;IAEjB,UAAU,CAAC,eAAK,CAAC;QACb,iBAAO,CAAC,sBAAsB,CAAC;YAC3B,OAAO,EAAE;gBACL,8BAAU;aACb;YACD,YAAY,EAAE,CAAC,yEAAiC,CAAC;YACjD,SAAS,EAAE;gBACP,2CAAuB;gBACvB,iDAA6B;gBAC7B,sCAAkB;aAKrB;SACJ,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC,CAAC;IAEJ,UAAU,CAAC;QACP,OAAO,GAAG,iBAAO,CAAC,eAAe,CAAC,yEAAiC,CAAC,CAAC;QAErE,KAAK,GAAG,OAAO,CAAC,YAAY,CAAC;QAC7B,OAAO,GAAG,OAAO,CAAC,aAAa,CAAC;QAChC,SAAS,GAAG,OAAO,CAAC,iBAAiB,CAAC;QAEtC,OAAO,CAAC,aAAa,EAAE,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE;QAC7B,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC,CAAC;IACpG,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC","sourcesContent":["/*!\n * @license\n * Copyright 2016 Alfresco Software, Ltd.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ComponentFixture, TestBed, async } from '@angular/core/testing';\nimport { DebugElement } from '@angular/core';\nimport { AlfrescoSettingsService, AlfrescoApiService, AlfrescoAuthenticationService, CoreModule } from 'ng2-alfresco-core';\n\nimport { Ng2AlfrescoAosEditonlineComponent } from '../src/ng2-alfresco-aos-editonline.component';\n\ndescribe('ng2-alfresco-aos-editonline', () => {\n\n let component: Ng2AlfrescoAosEditonlineComponent;\n let fixture: ComponentFixture<Ng2AlfrescoAosEditonlineComponent>;\n let debug: DebugElement;\n let element: any;\n\n beforeEach(async(() => {\n TestBed.configureTestingModule({\n imports: [\n CoreModule\n ],\n declarations: [Ng2AlfrescoAosEditonlineComponent],\n providers: [\n AlfrescoSettingsService,\n AlfrescoAuthenticationService,\n AlfrescoApiService\n /*,\n {provide: AlfrescoAuthenticationService, useClass: AuthenticationMock},\n {provide: AlfrescoTranslationService, useClass: TranslationMock}\n */\n ]\n }).compileComponents();\n }));\n\n beforeEach(() => {\n fixture = TestBed.createComponent(Ng2AlfrescoAosEditonlineComponent);\n\n debug = fixture.debugElement;\n element = fixture.nativeElement;\n component = fixture.componentInstance;\n\n fixture.detectChanges();\n });\n\n it('should display hello world', () => {\n expect(element.querySelector('h1')).toBeDefined();\n expect(element.getElementsByTagName('h1')[0].innerHTML).toEqual('Hello World Angular 2 test01');\n });\n\n});\n"]}