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

fix: stabilize app #20

Merged
merged 11 commits into from
Apr 23, 2018
Merged

fix: stabilize app #20

merged 11 commits into from
Apr 23, 2018

Conversation

Felglitzzz
Copy link

What does this PR do?

Fixes the nazgul-cfh application

return{
restrict: 'EA',
templateUrl: '/views/scoreboard.html',
link: function(scope, elem, attr){}

Choose a reason for hiding this comment

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

Expected method shorthand object-shorthand
Unexpected unnamed method 'link' func-names
Missing space before function parentheses space-before-function-paren
'attr' is defined but never used no-unused-vars
Missing space before opening brace space-before-blocks

@@ -58,6 +58,12 @@ angular.module('mean.directives', [])
templateUrl: '/views/question.html',
link: function(scope, elem, attr) {}
};
}).directive('scoreboard', function(){
return{

Choose a reason for hiding this comment

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

Expected space(s) after "return" keyword-spacing

@@ -58,6 +58,12 @@ angular.module('mean.directives', [])
templateUrl: '/views/question.html',
link: function(scope, elem, attr) {}
};
}).directive('scoreboard', function(){

Choose a reason for hiding this comment

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

Expected line break before .directive newline-per-chained-call
Unexpected unnamed function func-names
Unexpected function expression prefer-arrow-callback
Missing space before function parentheses space-before-function-paren
Missing space before opening brace space-before-blocks

@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 18, 2018 14:58 Inactive
@coveralls
Copy link

coveralls commented Apr 18, 2018

Pull Request Test Coverage Report for Build 300

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 76.923%

Totals Coverage Status
Change from base Build 253: 0.0%
Covered Lines: 30
Relevant Lines: 39

💛 - Coveralls

@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 18, 2018 15:15 Inactive
restrict: 'EA',
templateUrl: '/views/scoreboard.html',
link: () => {}
})).directive('timer', function(){

Choose a reason for hiding this comment

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

Expected line break before .directive newline-per-chained-call
Unexpected function expression prefer-arrow-callback
Unexpected unnamed function func-names
Missing space before function parentheses space-before-function-paren
Missing space before opening brace space-before-blocks

@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 18, 2018 15:30 Inactive
@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 18, 2018 18:44 Inactive
@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 18, 2018 20:04 Inactive
@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 21, 2018 13:34 Inactive

it('should have timer component', () => {
timer = element(by.css('card-panel')).element(by.id('time'));
console.log('time', timer);

Choose a reason for hiding this comment

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

Unexpected console statement no-console

const appRoot = 'http://localhost:3001/#!/app'
|| 'http://localhost:3000/#!/app';

let nav,timer;

Choose a reason for hiding this comment

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

A space is required after ',' comma-spacing

@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 21, 2018 20:27 Inactive
@@ -46,12 +48,10 @@ describe('Nazgul front-end UI', () => {
.getText())
.toEqual('A game for horrible people desperately trying to do good');
about = browser.findElement(by.css('h3.center.lighter-pink-text'));
aboutDescription = browser.findElement(by.css('p.lighter-pink-text'));
aboutDescription = browser.findElement(by.css('.lighter-pink-text'));

Choose a reason for hiding this comment

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

'aboutDescription' is not defined no-undef

/* global browser, expect, element, by, before, */

let timerCount, timerdesc, questSect, startGameBtn, endGameInfo,
showAnsCards, showHowToPlay, showCzar, showCharityWidget, gameEndInfo, showScoreboard, showCurrentPlayer, showCzarMarker;

Choose a reason for hiding this comment

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

Line 4 exceeds the maximum line length of 80 max-len

});
});

it('should show "How To Play" section"', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicated. See above test

@@ -8,6 +8,10 @@ describe('Nazgul front-end UI', () => {
browser.waitForAngularEnabled(false);
});

afterAll(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does your tsk have anything to do with signup? Why are you editing the signup specs

Copy link
Author

Choose a reason for hiding this comment

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

No, it doesn't have anything to do with signup. I was trying to debug. I have removed it.
I touched landing.spec.js because there was same id for two different divs and that caused the test to pass and fail sometimes. It was not consistent. So I told Gabriel and fixed it.

@iidrees iidrees temporarily deployed to nazgul-cfh-staging-pr-20 April 23, 2018 10:23 Inactive
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

5 participants