| 1 |
- {"ast":null,"code":"import { TestBed, async } from '@angular/core/testing';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { AppComponent } from './app.component';\ndescribe('AppComponent', () => {\n beforeEach(async(() => {\n TestBed.configureTestingModule({\n imports: [RouterTestingModule],\n declarations: [AppComponent]\n }).compileComponents();\n }));\n it('should create the app', () => {\n const fixture = TestBed.createComponent(AppComponent);\n const app = fixture.componentInstance;\n expect(app).toBeTruthy();\n });\n it(`should have as title 'fatboar'`, () => {\n const fixture = TestBed.createComponent(AppComponent);\n const app = fixture.componentInstance;\n expect(app.title).toEqual('fatboar');\n });\n it('should render title', () => {\n const fixture = TestBed.createComponent(AppComponent);\n fixture.detectChanges();\n const compiled = fixture.nativeElement;\n expect(compiled.querySelector('h1').textContent).toContain('fatboar app is running!');\n });\n});","map":{"version":3,"names":["TestBed","async","RouterTestingModule","AppComponent","describe","beforeEach","configureTestingModule","imports","declarations","compileComponents","it","fixture","createComponent","app","componentInstance","expect","toBeTruthy","title","toEqual","detectChanges","compiled","nativeElement","querySelector","textContent","toContain"],"sources":["C:\\FatboarProject\\angular-client\\src\\app\\app.component.spec.ts"],"sourcesContent":["import { TestBed, async } from '@angular/core/testing';\r\nimport { RouterTestingModule } from '@angular/router/testing';\r\nimport { AppComponent } from './app.component';\r\n\r\ndescribe('AppComponent', () => {\r\n beforeEach(async(() => {\r\n TestBed.configureTestingModule({\r\n imports: [\r\n RouterTestingModule\r\n ],\r\n declarations: [\r\n AppComponent\r\n ],\r\n }).compileComponents();\r\n }));\r\n\r\n it('should create the app', () => {\r\n const fixture = TestBed.createComponent(AppComponent);\r\n const app = fixture.componentInstance;\r\n expect(app).toBeTruthy();\r\n });\r\n\r\n it(`should have as title 'fatboar'`, () => {\r\n const fixture = TestBed.createComponent(AppComponent);\r\n const app = fixture.componentInstance;\r\n expect(app.title).toEqual('fatboar');\r\n });\r\n\r\n it('should render title', () => {\r\n const fixture = TestBed.createComponent(AppComponent);\r\n fixture.detectChanges();\r\n const compiled = fixture.nativeElement as HTMLElement;\r\n expect(compiled.querySelector('h1').textContent).toContain('fatboar app is running!');\r\n });\r\n});\r\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,KAAK,QAAQ,uBAAuB;AACtD,SAASC,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,YAAY,QAAQ,iBAAiB;AAE9CC,QAAQ,CAAC,cAAc,EAAE,MAAK;EAC5BC,UAAU,CAACJ,KAAK,CAAC,MAAK;IACpBD,OAAO,CAACM,sBAAsB,CAAC;MAC7BC,OAAO,EAAE,CACPL,mBAAmB,CACpB;MACDM,YAAY,EAAE,CACZL,YAAY;KAEf,CAAC,CAACM,iBAAiB,EAAE;EACxB,CAAC,CAAC,CAAC;EAEHC,EAAE,CAAC,uBAAuB,EAAE,MAAK;IAC/B,MAAMC,OAAO,GAAGX,OAAO,CAACY,eAAe,CAACT,YAAY,CAAC;IACrD,MAAMU,GAAG,GAAGF,OAAO,CAACG,iBAAiB;IACrCC,MAAM,CAACF,GAAG,CAAC,CAACG,UAAU,EAAE;EAC1B,CAAC,CAAC;EAEFN,EAAE,CAAC,gCAAgC,EAAE,MAAK;IACxC,MAAMC,OAAO,GAAGX,OAAO,CAACY,eAAe,CAACT,YAAY,CAAC;IACrD,MAAMU,GAAG,GAAGF,OAAO,CAACG,iBAAiB;IACrCC,MAAM,CAACF,GAAG,CAACI,KAAK,CAAC,CAACC,OAAO,CAAC,SAAS,CAAC;EACtC,CAAC,CAAC;EAEFR,EAAE,CAAC,qBAAqB,EAAE,MAAK;IAC7B,MAAMC,OAAO,GAAGX,OAAO,CAACY,eAAe,CAACT,YAAY,CAAC;IACrDQ,OAAO,CAACQ,aAAa,EAAE;IACvB,MAAMC,QAAQ,GAAGT,OAAO,CAACU,aAA4B;IACrDN,MAAM,CAACK,QAAQ,CAACE,aAAa,CAAC,IAAI,CAAC,CAACC,WAAW,CAAC,CAACC,SAAS,CAAC,yBAAyB,CAAC;EACvF,CAAC,CAAC;AACJ,CAAC,CAAC"},"metadata":{},"sourceType":"module","externalDependencies":[]}
|