-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- move notfound to components - update specs
- Loading branch information
Showing
34 changed files
with
269 additions
and
74 deletions.
There are no files selected for viewing
This file contains 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
import { LayoutComponent } from './layout/layout.component' | ||
import { NotFoundComponent } from './not-found/not-found.component' | ||
|
||
export const components: any[] = [ | ||
LayoutComponent, | ||
NotFoundComponent, | ||
] | ||
|
||
export * from './layout/layout.component' | ||
export * from './not-found/not-found.component' |
55 changes: 50 additions & 5 deletions
55
src/app/core/components/layout/__snapshots__/layout.component.spec.ts.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,57 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`LayoutComponent should match snapshot 1`] = ` | ||
<app-layout> | ||
<header /><main> | ||
--/ router-outlet -- | ||
<app-layout | ||
store={[Function Store]} | ||
user$={[Function Store]} | ||
> | ||
<header | ||
class="header" | ||
> | ||
<div | ||
class="left" | ||
> | ||
<h1 | ||
class="title" | ||
> | ||
</h1> | ||
<p> | ||
</p> | ||
</div> | ||
<div | ||
class="center" | ||
> | ||
<a | ||
href="/games" | ||
ng-reflect-router-link="/games" | ||
ng-reflect-router-link-active="active" | ||
routerlink="/games" | ||
routerlinkactive="active" | ||
> | ||
Games | ||
</a> | ||
</div> | ||
<div | ||
class="right" | ||
> | ||
<a | ||
href="/login" | ||
ng-reflect-router-link="/login" | ||
ng-reflect-router-link-active="active" | ||
routerlink="/login" | ||
routerlinkactive="active" | ||
> | ||
Login | ||
</a> | ||
</div> | ||
</header><main | ||
class="main" | ||
> | ||
<router-outlet /> | ||
-- router-outlet /-- | ||
</main> | ||
</app-layout> | ||
`; |
This file contains 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 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 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 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 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
10 changes: 10 additions & 0 deletions
10
src/app/core/containers/header/__snapshots__/header.component.spec.ts.snap
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`HeaderComponent should match snapshot 1`] = ` | ||
<app-header> | ||
<p> | ||
header works! | ||
</p> | ||
</app-header> | ||
`; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
header works! | ||
</p> |
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { NO_ERRORS_SCHEMA } from '@angular/core' | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { HeaderComponent } from './header.component' | ||
|
||
|
||
describe('HeaderComponent', () => { | ||
let component: HeaderComponent | ||
let fixture: ComponentFixture<HeaderComponent> | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureCompiler({ preserveWhitespaces: false } as any).configureTestingModule({ | ||
declarations: [ HeaderComponent ], | ||
schemas: [ NO_ERRORS_SCHEMA ], | ||
}) | ||
.compileComponents() | ||
})) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(HeaderComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create component', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
|
||
it('should match snapshot', () => { | ||
expect(fixture).toMatchSnapshot() | ||
}) | ||
}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core' | ||
|
||
@Component({ | ||
selector: 'app-header', | ||
templateUrl: './header.component.html', | ||
styleUrls: ['./header.component.sass'] | ||
}) | ||
export class HeaderComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { AppComponent } from './app/app.component' | ||
import { GamesComponent } from './games/games.component' | ||
import { HeaderComponent } from './header/header.component' | ||
import { LoginComponent } from './login/login.component' | ||
import { NotFoundComponent } from './not-found/not-found.component' | ||
|
||
export const containers: any[] = [ | ||
AppComponent, | ||
GamesComponent, | ||
HeaderComponent, | ||
LoginComponent, | ||
NotFoundComponent, | ||
] | ||
|
||
export * from './app/app.component' | ||
export * from './games/games.component' | ||
export * from './header/header.component' | ||
export * from './login/login.component' | ||
export * from './not-found/not-found.component' |
This file contains 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
Oops, something went wrong.