Skip to content

Commit

Permalink
project code: rename a component
Browse files Browse the repository at this point in the history
* Renames checkout component accordingly to its usage (checkins).

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
  • Loading branch information
Alicia Zangger committed Mar 17, 2020
1 parent 2aca32c commit 16709c7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@

import { HttpClientModule } from '@angular/common/http';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterTestingModule } from '@angular/router/testing';
import { TranslateModule } from '@ngx-translate/core';
import { CoreModule, RecordModule } from '@rero/ng-core';
import { ItemsListComponent } from '../items-list/items-list.component';
import { CardComponent } from '../patron/card/card.component';
import { CheckoutComponent } from './checkout.component';
import { ItemComponent } from '../item/item.component';
import { CollapseModule } from 'ngx-bootstrap';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { UserService } from '../../service/user.service';
import { ItemComponent } from '../item/item.component';
import { ItemsListComponent } from '../items-list/items-list.component';
import { CardComponent } from '../patron/card/card.component';
import { CheckinComponent } from './checkin.component';


describe('CheckoutComponent', () => {
let component: CheckoutComponent;
let fixture: ComponentFixture<CheckoutComponent>;
let component: CheckinComponent;
let fixture: ComponentFixture<CheckinComponent>;

const userService = jasmine.createSpyObj(
'UserService', ['getCurrentUser']
Expand Down Expand Up @@ -62,7 +62,7 @@ describe('CheckoutComponent', () => {
],
declarations: [
CardComponent,
CheckoutComponent,
CheckinComponent,
ItemsListComponent,
ItemComponent
],
Expand All @@ -74,7 +74,7 @@ describe('CheckoutComponent', () => {
}));

beforeEach(() => {
fixture = TestBed.createComponent(CheckoutComponent);
fixture = TestBed.createComponent(CheckinComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import { ItemsService } from '../items.service';

@Component({
selector: 'admin-circulation-checkout',
templateUrl: './checkout.component.html'
templateUrl: './checkin.component.html'
})
export class CheckoutComponent implements OnInit {
export class CheckinComponent implements OnInit {
public placeholder: string = this._translate.instant(
'Please enter a patron card number or an item barcode.'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CheckoutComponent } from './checkout/checkout.component';
import { CheckinComponent } from './checkin/checkin.component';
import { MainRequestComponent } from './main-request/main-request.component';
import { LoanComponent } from './patron/loan/loan.component';
import { MainComponent } from './patron/main/main.component';
Expand Down Expand Up @@ -64,7 +64,7 @@ const routes: Routes = [
]
}, {
path: 'checkout',
component: CheckoutComponent
component: CheckinComponent
}, {
path: 'requests',
component: MainRequestComponent
Expand Down
4 changes: 2 additions & 2 deletions projects/admin/src/app/circulation/circulation.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import { BsDropdownModule, CollapseModule } from 'ngx-bootstrap';
import { CardComponent } from './patron/card/card.component';
import { CheckoutComponent } from './checkout/checkout.component';
import { CheckinComponent } from './checkin/checkin.component';
import { CirculationRoutingModule } from './circulation-routing.module';
import { CommonModule } from '@angular/common';
import { FormlyModule } from '@ngx-formly/core';
Expand Down Expand Up @@ -56,7 +56,7 @@ import { RequestedItemsListComponent } from './requested-items-list/requested-it
CardComponent,
ItemsListComponent,
LoanComponent,
CheckoutComponent,
CheckinComponent,
ItemComponent,
ProfileComponent,
RequestedComponent,
Expand Down

0 comments on commit 16709c7

Please sign in to comment.