Skip to content

Commit 6015dab

Browse files
committed
select component testing
1 parent 8a64944 commit 6015dab

29 files changed

+612
-277
lines changed

projects/arc-lib/documentation.json

Lines changed: 265 additions & 120 deletions
Large diffs are not rendered by default.

projects/arc-lib/src/lib/components/auth/auth-routing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const routes: Routes = [
99
path: '',
1010
component: AuthComponent,
1111
children: [
12-
{
13-
path: 'login',
14-
component: LoginComponent,
15-
},
12+
// {
13+
// path: 'login',
14+
// component: LoginComponent,
15+
// },
1616
],
1717
},
1818
];

projects/arc-lib/src/lib/components/auth/auth.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ import { LoginPageComponent } from './login-page/login-page.component';
3636
forms: {},
3737
}),
3838
],
39+
exports:[LoginPageComponent]
3940
})
4041
export class AuthModule {}

projects/arc-lib/src/lib/components/auth/home-page/home-page.component.css

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>home-page works!</p>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { HomePageComponent } from './home-page.component';
4+
5+
describe('HomePageComponent', () => {
6+
let component: HomePageComponent;
7+
let fixture: ComponentFixture<HomePageComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ HomePageComponent ]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(HomePageComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Component } from '@angular/core';
2+
3+
@Component({
4+
selector: 'lib-home-page',
5+
templateUrl: './home-page.component.html',
6+
styleUrls: ['./home-page.component.css']
7+
})
8+
export class HomePageComponent {
9+
10+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
<div class="main-section">
3+
<div class="first">
4+
<nb-card class="h-100 m-0">
5+
<nb-card-body class="p-0">
6+
<!-- Include the Login Component here -->
7+
<login></login>
8+
9+
10+
</nb-card-body>
11+
</nb-card>
12+
</div>
13+
14+
<div class="first">
15+
<nb-layout>
16+
<nb-layout-column>
17+
<div class="login-img">
18+
<img width="90%" src="http://localhost:4200/assets/images/auth/login-img.png" alt="loginImg" />
19+
</div>
20+
</nb-layout-column>
21+
</nb-layout>
22+
</div>
23+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.main-section {
2+
display: flex;
3+
}
4+
.first {
5+
width: 50%;
6+
}
7+
.main-section .first .nb-card{
8+
margin: 0;
9+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { LoginPageComponent } from './login-page.component';
4+
5+
describe('LoginPageComponent', () => {
6+
let component: LoginPageComponent;
7+
let fixture: ComponentFixture<LoginPageComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ LoginPageComponent ]
12+
})
13+
.compileComponents();
14+
15+
fixture = TestBed.createComponent(LoginPageComponent);
16+
component = fixture.componentInstance;
17+
fixture.detectChanges();
18+
});
19+
20+
it('should create', () => {
21+
expect(component).toBeTruthy();
22+
});
23+
});

0 commit comments

Comments
 (0)