Skip to content
Snippets Groups Projects
Commit 8a179f1d authored by Hugo BAYOUD's avatar Hugo BAYOUD
Browse files

commit client

parent 542aa38d
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ Run `ng generate component component-name` to generate a new component. You can
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
Run `ng build` to build the project. The build artifacts will be stored in the `public/` directory. Use the `--prod` flag for a production build.
## Running unit tests
......
This diff is collapsed.
import { TestBed } from '@angular/core/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [
AppComponent
],
}).compileComponents();
});
it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'client'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('client');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement;
expect(compiled.querySelector('.content span').textContent).toContain('client app is running!');
});
});
......@@ -6,5 +6,6 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'client';
title = 'Titre de test pour donjon et boissons';
}
//6:30
\ No newline at end of file
......@@ -8,6 +8,7 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<h1>Comes from root component</h1>
<app-root></app-root>
</body>
</html>
......@@ -10,3 +10,5 @@ if (environment.production) {
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error(err));
// ssh -i "../detb.pem" ubuntu@ec2-18-188-136-99.us-east-2.compute.amazonaws.com
\ No newline at end of file
/* You can add global styles to this file, and also import other style files */
html, body {
background-color: lightgrey;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment