Skip to content

Commit e36f868

Browse files
committed
clean
1 parent 57d2f71 commit e36f868

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

src/app/+boxs/box-small/box-small.component.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
22

33
import { BoxSmallComponent } from './box-small.component';
44

5-
import { BoxModule, BoxSmallModule } from 'angular-admin-lte';
5+
import { BoxModule, BoxSmallModule as MkBoxSmallModule } from 'angular-admin-lte';
66

77
describe('BoxSmallComponent', () => {
88
let component: BoxSmallComponent;
@@ -12,7 +12,7 @@ describe('BoxSmallComponent', () => {
1212
TestBed.configureTestingModule({
1313
imports: [
1414
BoxModule,
15-
BoxSmallModule
15+
MkBoxSmallModule
1616
],
1717
declarations: [ BoxSmallComponent ]
1818
})

src/app/+boxs/box-small/box-small.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ import { BoxModule, BoxSmallModule as MkBoxSmallModule } from 'angular-admin-lt
1515
],
1616
declarations: [BoxSmallComponent]
1717
})
18-
export class BoxSmallModule { }
18+
export class BoxSmallModule {}

src/app/app.component.spec.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
import { TestBed, async } from '@angular/core/testing';
22
import { RouterTestingModule } from '@angular/router/testing';
3+
34
import { AppComponent } from './app.component';
5+
import { CoreModule } from './core/core.module';
6+
import { LayoutModule } from 'angular-admin-lte';
7+
8+
import { LoadingPageModule, MaterialBarModule } from 'angular-loading-page';
9+
import { adminLteConf } from './admin-lte.conf';
10+
411
describe('AppComponent', () => {
512
beforeEach(async(() => {
613
TestBed.configureTestingModule({
714
imports: [
8-
RouterTestingModule
15+
RouterTestingModule,
16+
CoreModule,
17+
LayoutModule.forRoot(adminLteConf),
18+
LoadingPageModule, MaterialBarModule
919
],
1020
declarations: [
1121
AppComponent
@@ -17,15 +27,4 @@ describe('AppComponent', () => {
1727
const app = fixture.debugElement.componentInstance;
1828
expect(app).toBeTruthy();
1929
}));
20-
it(`should have as title 'app'`, async(() => {
21-
const fixture = TestBed.createComponent(AppComponent);
22-
const app = fixture.debugElement.componentInstance;
23-
expect(app.title).toEqual('app');
24-
}));
25-
it('should render title in a h1 tag', async(() => {
26-
const fixture = TestBed.createComponent(AppComponent);
27-
fixture.detectChanges();
28-
const compiled = fixture.debugElement.nativeElement;
29-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
30-
}));
3130
});

src/app/home/home.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
<mk-box header="Dependencies" [isCollapsable]="false" [isRemovable]="false">
1818
<p>Angular Admin LTE have no JS dependencies but still need Admin LTE and Bootstrap CSS. You can also use FontAwesome and Ionicons as it is used by default in Admin LTE.</p>
1919
<pre><code class="language-typescript">"styles": [
20-
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
20+
"node_modules/bootstrap-css-only/css/bootstrap.min.css",
2121
"node_modules/font-awesome/css/font-awesome.css",
2222
"node_modules/ionicons/css/ionicons.css",
23-
"node_modules/admin-lte-css/dist/css/AdminLTE.css",
24-
"node_modules/admin-lte/dist/css/skins/_all-skins.css"
23+
"node_modules/admin-lte-css/dist/css/AdminLTE.css",
24+
"node_modules/admin-lte-css/dist/css/skins/_all-skins.css"
2525
]</code></pre>
2626
</mk-box>

0 commit comments

Comments
 (0)