Skip to content
Snippets Groups Projects
Commit 9fc2711f authored by Jérémie BRISON's avatar Jérémie BRISON Committed by Hugo SUBTIL
Browse files

feat(admin) : init module + components

parent 16a7fd0d
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!51Feat/admin panel attachment
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PanelComponent } from './panel/panel.component';
import { ValidationAttachmentComponent } from './validation-attachment/validation-attachment.component';
@NgModule({
declarations: [PanelComponent, ValidationAttachmentComponent],
imports: [
CommonModule
]
})
export class AdminModule { }
<p>panel works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PanelComponent } from './panel.component';
describe('PanelComponent', () => {
let component: PanelComponent;
let fixture: ComponentFixture<PanelComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ PanelComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(PanelComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-panel',
templateUrl: './panel.component.html',
styleUrls: ['./panel.component.scss']
})
export class PanelComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
<p>validation-attachment works!</p>
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ValidationAttachmentComponent } from './validation-attachment.component';
describe('ValidationAttachmentComponent', () => {
let component: ValidationAttachmentComponent;
let fixture: ComponentFixture<ValidationAttachmentComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ValidationAttachmentComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ValidationAttachmentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-validation-attachment',
templateUrl: './validation-attachment.component.html',
styleUrls: ['./validation-attachment.component.scss']
})
export class ValidationAttachmentComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
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