Commit ef368e20 authored by Mark Harding's avatar Mark Harding

(chore): ci test against html and scss too

1 merge request!519(chore): introduce linting to frontend
Pipeline #78930474 running with stages
......@@ -31,6 +31,8 @@ lint:
script:
- npm i -g prettier
- prettier --check "src/**/*.ts"
- prettier --check "src/**/*.scss"
- prettier --check "src/**/*.html"
e2e:chrome:
image: cypress/browsers:chrome67
......
......@@ -109,9 +109,7 @@
<div *ngIf="session.getLoggedInUser().rewards && !confirmed">
<h2 i18n="@@M__PURCHASE_TITLE">
Your {{ phase === 'presale' ? 'pledge' : 'purchase' }} for
{{ tokens | number: '1.0-4' }} Tokens ({{
amount | number: '1.0-4'
}}
{{ tokens | number: '1.0-4' }} Tokens ({{ amount | number: '1.0-4' }}
ETH)
</h2>
......
......@@ -248,7 +248,7 @@ describe('NotificationsComponent', () => {
fixture.detectChanges();
expect(comp.notification).not.toBeNull();
const notification = fixture.debugElement.query(By.css('p'));
expect(notification.nativeElement.innerHTML).toBe(
expect(notification.nativeElement.innerHTML).toContain(
'name tagged you in a post'
);
});
......@@ -276,7 +276,7 @@ describe('NotificationsComponent', () => {
fixture.detectChanges();
expect(comp.notification).not.toBeNull();
const notification = fixture.debugElement.query(By.css('p'));
expect(notification.nativeElement.innerHTML).toBe(
expect(notification.nativeElement.innerHTML).toContain(
'name tagged you in a comment'
);
});
......@@ -518,7 +518,7 @@ describe('NotificationsComponent', () => {
fixture.detectChanges();
expect(comp.notification).not.toBeNull();
const notification = fixture.debugElement.query(By.css('p'));
expect(notification.nativeElement.innerHTML).toBe(
expect(notification.nativeElement.innerHTML).toContain(
'You can gain more reach by boosting your content. Hit the blue boost icon on your posts.'
);
});
......
......@@ -27,5 +27,5 @@
// Ornamental Dingbats
U+1F680-1F6FF,
// Transport and Map
U+1F900-1F9FF // Supplemental symbols and pictographs;
U+1F900-1F9FF; // Supplemental symbols and pictographs;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment