Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve conflicts in files for test cases #74

Conversation

simrin051
Copy link
Contributor

It has test files ( spec files ) and certain changes had to be made to html file and ts files to pass test cases. All the needed files are committed in this PR.

@simrin051
Copy link
Contributor Author

@arey

Can you please check now. Please.


describe('#getOwners', () => {
let expectedOwners: Owner[];
it("should return expected owners (called once)", () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you have use the linter (ng lint) ? I remember single quote should be used.

wq Outdated
@@ -0,0 +1,15 @@
ea40ba4 (HEAD -> testcases, origin/testcases) HEAD@{0}: reset: moving to ea40ba4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove this file ?

@@ -20,58 +20,55 @@
* @author Vitaliy Fedoriv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you revert reformating please ?

import {Component, EventEmitter, OnInit, Output} from '@angular/core';
import {Specialty} from '../specialty';
import {SpecialtyService} from '../specialty.service';
import {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you revert reformating please ?

<label class="col-sm-1 control-label">Name</label>
<div class="col-sm-6">
<input id="name" name="name" class="form-control" type="text" [(ngModel)]="specialty.name" #specialityName="ngModel"/>
<input id="name" class="form-control" type="text" [(ngModel)]="speciality.name" name="specialityName" #specialityName="ngModel" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does we have to 2 <input>with the same id?

@@ -32,6 +33,7 @@ import {Router} from '@angular/router';
})
export class OwnerAddComponent implements OnInit {

@ViewChild("ownerForm", { static: true }) ownerForm: NgForm;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you introduced the @ViewChilddecorator?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was throwing error as ownerForm not found in component ts file

addOwner(owner: Owner): Observable<Owner> {
return of(owner);
}
}

describe('OwnerAddComponent', () => {
describe("OwnerAddComponent", () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linting should be apply

karma.conf.js Outdated
clearContext: false // leave Jasmine Spec Runner output visible in browser
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine:{
random: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why disabling random?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To run the test cases in order without random seed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you fall on errors due to random execution?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No i did not..i have removed now in latest commit.

@simrin051
Copy link
Contributor Author

simrin051 commented Nov 11, 2021

@arey

I have committed with changes that you have mentioned, i have also commented on few changes. May i know why a Angular CI check is failing I used ng lint --fix=true for linting all files but looks like it is not supporting as in the screenshot. Can you please advice.
image

@simrin051
Copy link
Contributor Author

simrin051 commented Nov 12, 2021

Hi @arey

tslint is not longer supporting, eslint does support as universal to typescript and js users. Can you please advice.

@simrin051
Copy link
Contributor Author

Hi @arey

tslint is not longer supporting, eslint does support as universal to typescript and js users. Can you please advice.

@arey arey closed this Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants