Skip to content

Commit

Permalink
fix: test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
petrot committed Feb 17, 2018
1 parent 60094f1 commit 245c795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/pages/hike-edit/hike-edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class HikeEditComponent implements OnInit, OnDestroy {
.subscribe(params => {
// Load hike data from mock DB
if (params && params.id) {
// Generate hike id
// Set hike id
this._store.dispatch(new hikeEditGeneralInfoActions.SetHikeId({
hikeId: params.id
}));
Expand Down
10 changes: 5 additions & 5 deletions src/app/store/actions/test/route-info-data.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as RouteInfoDataActions from '../route-info-data';
describe('RouteInfoData actions', () => {
it('should have action names defined', () => {
expect(RouteInfoDataActions.RESET).toEqual('[RouteInfoData] Reset');
expect(RouteInfoDataActions.ADD_TRACK).toEqual('[RouteInfoData] Add track');
expect(RouteInfoDataActions.ADD_ROUTE).toEqual('[RouteInfoData] Add route');
expect(RouteInfoDataActions.PUSH_SEGMENT).toEqual('[RouteInfoData] Push segment');
expect(RouteInfoDataActions.POP_SEGMENT).toEqual('[RouteInfoData] Pop segment');
expect(RouteInfoDataActions.UPDATE_TOTAL).toEqual('[RouteInfoData] Update total');
Expand All @@ -17,12 +17,12 @@ describe('RouteInfoData actions', () => {
expect(expectedClass.type).toEqual(RouteInfoDataActions.RESET);
});

it('should create AddTrack action', () => {
let expectedClass = new RouteInfoDataActions.AddTrack({
track: null
it('should create Addroute action', () => {
let expectedClass = new RouteInfoDataActions.AddRoute({
route: null
});
expect(expectedClass).toBeDefined();
expect(expectedClass.type).toEqual(RouteInfoDataActions.ADD_TRACK);
expect(expectedClass.type).toEqual(RouteInfoDataActions.ADD_ROUTE);
});

it('should create PushSegment action', () => {
Expand Down

0 comments on commit 245c795

Please sign in to comment.