-
Notifications
You must be signed in to change notification settings - Fork 65
Conversation
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: cdecb5a (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 55fde1a (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: f7a497f (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 1f2b52f (Please note that this is a fully automated comment.) |
Codecov Report
@@ Coverage Diff @@
## master #1842 +/- ##
==========================================
+ Coverage 99.98% 99.98% +<.01%
==========================================
Files 410 412 +2
Lines 8592 8610 +18
Branches 1269 1271 +2
==========================================
+ Hits 8591 8609 +18
Misses 1 1
Continue to review full report at Codecov.
|
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 257b8e4 (Please note that this is a fully automated comment.) |
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 7ea881c (Please note that this is a fully automated comment.) |
@@ -0,0 +1,12 @@ | |||
<div id="screenshot-icon"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style comment:
attributes go on their own lines for all html tags.
@@ -0,0 +1,10 @@ | |||
<sky-icon icon="spinner" size="3x" fixedWidth="true"></sky-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attributes on different lines in alphabetical order
@@ -0,0 +1 @@ | |||
<sky-icon [icon]="icon" [size]="size" [fixedWidth]="fixedWidth"></sky-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attributes on different lines in alphabetical order
src/modules/icon/icon.component.html
Outdated
@@ -0,0 +1,5 @@ | |||
<i *ngIf="icon" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move *ngIf to its own line
expect(element.querySelector('.sky-icon').classList.length).toBe(4); | ||
}); | ||
|
||
it('should display something other than circle', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rename this to say that it is testing that an icon is displayed with a fixed width and no size
|
||
it('should display something other than circle', () => { | ||
cmp.icon = 'broom'; | ||
cmp.size = ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use undefined instead of empty string to represent the value not being provided
src/modules/icon/icon.component.ts
Outdated
public size: string; | ||
|
||
@Input() | ||
public fixedWidth: boolean = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want this to default to false?
src/modules/icon/icon.component.ts
Outdated
if (this.size !== '') { | ||
list.push('fa-' + this.size); | ||
} | ||
if (this.fixedWidth === true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since fixedWidth is a boolean, this could just be
if (this.fixedWidth) {
src/modules/icon/icon.component.ts
Outdated
public classList(): string[] { | ||
let list: string[] = []; | ||
list.push('fa-' + this.icon); | ||
if (this.size !== '') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In javascript all values are truthy or falsy and in this case we will want to cover the scenarios where size is undefined or ''
Both of those are considered falsy. So this can be:
if (this.size) {
and it will cover both cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just two small things
@@ -15,7 +15,7 @@ import { | |||
expect | |||
} from '@blackbaud/skyux-builder/runtime/testing/browser'; | |||
|
|||
describe('Icon component', () => { | |||
fdescribe('Icon component', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed an "f" 😉
<sky-icon | ||
[icon]="icon" | ||
[size]="size" | ||
[fixedWidth]="fixedWidth"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alphabetical
<sky-icon
[fixedWidth]="fixedWidth"
[icon]="icon"
[size]="size">
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: da17078 (Please note that this is a fully automated comment.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, Harsh! 😃
Tests failed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: BUSTED Commit: 2fbcc76 (Please note that this is a fully automated comment.) |
Tests passed. Automated cross-browser testing via BrowserStack and Travis CI shows that the JavaScript changes in this pull request are: CONFIRMED Commit: 39ed79c (Please note that this is a fully automated comment.) |
closing in favor of #1846 |
This allows for multiple classes to be input into sky-icon