mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-11-12 17:43:57 +00:00
BETTERZON-29: Adding test component
This commit is contained in:
parent
1c9387a496
commit
f35bbafaa2
8661
Frontend/package-lock.json
generated
8661
Frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -11,25 +11,27 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "~10.1.5",
|
"@angular/animations": "^10.2.3",
|
||||||
"@angular/common": "~10.1.5",
|
"@angular/common": "^10.2.3",
|
||||||
"@angular/compiler": "~10.1.5",
|
"@angular/compiler": "^10.2.3",
|
||||||
"@angular/core": "~10.1.5",
|
"@angular/core": "^10.2.3",
|
||||||
"@angular/forms": "~10.1.5",
|
"@angular/forms": "^10.2.3",
|
||||||
"@angular/platform-browser": "~10.1.5",
|
"@angular/platform-browser": "^10.2.3",
|
||||||
"@angular/platform-browser-dynamic": "~10.1.5",
|
"@angular/platform-browser-dynamic": "^10.2.3",
|
||||||
"@angular/router": "~10.1.5",
|
"@angular/router": "^10.2.3",
|
||||||
|
"angular-cli": "^1.0.0-beta.28.3",
|
||||||
|
"ng": "0.0.0",
|
||||||
"rxjs": "~6.6.0",
|
"rxjs": "~6.6.0",
|
||||||
"tslib": "^2.0.0",
|
"tslib": "^2.0.3",
|
||||||
"zone.js": "~0.10.2"
|
"zone.js": "~0.10.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~0.1001.5",
|
"@angular-devkit/build-angular": "^0.1100.1",
|
||||||
"@angular/cli": "~10.1.5",
|
"@angular/cli": "^10.2.0",
|
||||||
"@angular/compiler-cli": "~10.1.5",
|
"@angular/compiler-cli": "^10.2.3",
|
||||||
"@types/node": "^12.11.1",
|
|
||||||
"@types/jasmine": "~3.5.0",
|
"@types/jasmine": "~3.5.0",
|
||||||
"@types/jasminewd2": "~2.0.3",
|
"@types/jasminewd2": "~2.0.3",
|
||||||
|
"@types/node": "^12.19.4",
|
||||||
"codelyzer": "^6.0.0",
|
"codelyzer": "^6.0.0",
|
||||||
"jasmine-core": "~3.6.0",
|
"jasmine-core": "~3.6.0",
|
||||||
"jasmine-spec-reporter": "~5.0.0",
|
"jasmine-spec-reporter": "~5.0.0",
|
||||||
|
@ -41,6 +43,6 @@
|
||||||
"protractor": "~7.0.0",
|
"protractor": "~7.0.0",
|
||||||
"ts-node": "~8.3.0",
|
"ts-node": "~8.3.0",
|
||||||
"tslint": "~6.1.0",
|
"tslint": "~6.1.0",
|
||||||
"typescript": "~4.0.2"
|
"typescript": "^4.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,12 @@ import { BrowserModule } from '@angular/platform-browser';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
import { HelloWorldComponent } from './hello-world/hello-world.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent,
|
||||||
|
HelloWorldComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule
|
BrowserModule
|
||||||
|
|
1
Frontend/src/app/hello-world/hello-world.component.html
Normal file
1
Frontend/src/app/hello-world/hello-world.component.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<p>hello-world works!</p>
|
25
Frontend/src/app/hello-world/hello-world.component.spec.ts
Normal file
25
Frontend/src/app/hello-world/hello-world.component.spec.ts
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { HelloWorldComponent } from './hello-world.component';
|
||||||
|
|
||||||
|
describe('HelloWorldComponent', () => {
|
||||||
|
let component: HelloWorldComponent;
|
||||||
|
let fixture: ComponentFixture<HelloWorldComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
declarations: [ HelloWorldComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(HelloWorldComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
15
Frontend/src/app/hello-world/hello-world.component.ts
Normal file
15
Frontend/src/app/hello-world/hello-world.component.ts
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-hello-world',
|
||||||
|
templateUrl: './hello-world.component.html',
|
||||||
|
styleUrls: ['./hello-world.component.css']
|
||||||
|
})
|
||||||
|
export class HelloWorldComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit(): void {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user