This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { DebugElement } from "@angular/core"; | |
| import { ComponentFixture, TestBed } from "@angular/core/testing" | |
| import { By } from "@angular/platform-browser"; | |
| import { of } from "rxjs"; | |
| import { HeroService } from "../hero.service"; | |
| import { HeroComponent } from "../hero/hero.component"; | |
| import { HeroesComponent } from "./heroes.component" | |
| describe('HeroComponent (integration tests)', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { DebugElement } from "@angular/core"; | |
| import { ComponentFixture, TestBed } from "@angular/core/testing" | |
| import { By } from "@angular/platform-browser"; | |
| import { of } from "rxjs"; | |
| import { HeroService } from "../hero.service"; | |
| import { HeroesComponent } from "./heroes.component" | |
| describe('HeroComponent (integration tests)', () => { | |
| let fixture: ComponentFixture<HeroesComponent>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { DebugElement } from "@angular/core"; | |
| import { ComponentFixture, TestBed } from "@angular/core/testing" | |
| import { By } from "@angular/platform-browser"; | |
| import { HeroComponent } from "./hero.component" | |
| describe('HeroComponent (integration tests)', () => { | |
| let fixture: ComponentFixture<HeroComponent>; | |
| beforeEach(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "_id": "5e87f6c697f79aecfc608f38", | |
| "index": 0, | |
| "guid": "b3bcb9af-de96-43c4-9760-ffeb6e858327", | |
| "isActive": false, | |
| "balance": "$1,270.82", | |
| "picture": "http://placehold.it/32x32", | |
| "age": 31, | |
| "eyeColor": "green", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { TestBed, ComponentFixture } from "@angular/core/testing" | |
| import { NO_ERRORS_SCHEMA } from "@angular/core"; | |
| import { HeroesComponent } from "./heroes.component"; | |
| import { HeroService } from "../hero.service"; | |
| import { of } from "rxjs"; | |
| import { HeroComponent } from "../hero/hero.component"; | |
| import { By } from "@angular/platform-browser"; | |
| describe('Hero Component', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+(![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| describe('Home Page', () => { | |
| beforeEach(() => { | |
| }) | |
| it('should have title', () => { | |
| cy.seedAndVisit(); | |
| cy.contains('Angular (2+)'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)esm5/, path.join(__dirname, './client')), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| beforeEach(() => { | |
| jasmine.addMatchers({ | |
| toBeAHero: (util, customEqualityMatchers) => { | |
| return { | |
| compare: (actual, expected) => { | |
| return { | |
| // heroes are objects that have id, name and strength properties | |
| pass: actual && actual.id && actual.name && actual.strength | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isLeapYear(year) { | |
| if(year > 1582 && divisibleBy4(year)) { | |
| if(divisibleBy100ButNot400(year)) { | |
| return false; | |
| } else { | |
| return true; | |
| } | |
| } else { |
NewerOlder