Commit b5ee15fa 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 #78743930 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
......
......@@ -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.'
);
});
......
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