[ACA-1443] prettier formatting and checks (#629)

* intergrate prettier

* update settings

* integrate with travis

* unified formatting across all files
This commit is contained in:
Denys Vuika
2018-09-13 16:47:55 +01:00
committed by GitHub
parent 06402a9c72
commit 883a1971c5
163 changed files with 13571 additions and 12512 deletions

View File

@@ -26,31 +26,31 @@
import { PageComponent } from './page.component';
class TestClass extends PageComponent {
node: any;
node: any;
constructor() {
super(null, null, null);
}
constructor() {
super(null, null, null);
}
}
describe('PageComponent', () => {
let component: TestClass;
let component: TestClass;
beforeEach(() => {
component = new TestClass();
beforeEach(() => {
component = new TestClass();
});
describe('getParentNodeId()', () => {
it('returns parent node id when node is set', () => {
component.node = { id: 'node-id' };
expect(component.getParentNodeId()).toBe('node-id');
});
describe('getParentNodeId()', () => {
it('returns parent node id when node is set', () => {
component.node = { id: 'node-id' };
it('returns null when node is not set', () => {
component.node = null;
expect(component.getParentNodeId()).toBe('node-id');
});
it('returns null when node is not set', () => {
component.node = null;
expect(component.getParentNodeId()).toBe(null);
});
expect(component.getParentNodeId()).toBe(null);
});
});
});