Skip to content

Commit

Permalink
fix(lib): revert pr
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Jan 19, 2019
1 parent 9a10789 commit 8c00cde
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
9 changes: 1 addition & 8 deletions projects/spectator/src/lib/internals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ export class Spectator<C> {
fixture: ComponentFixture<C>;
component: C;
element: HTMLElement | Node | any;

private _debugElement: DebugElement;
get debugElement() {
return this._debugElement || this['hostDebugElement'];
}
set debugElement(value) {
this._debugElement = value;
}
debugElement: DebugElement;

/**
* Wrapper for TestBed.get()
Expand Down
5 changes: 0 additions & 5 deletions src/app/unless/unless.component.jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ describe('HelloComponent', () => {
host = createHost(`<div *appUnless="true">Hello world</div>`);
expect(host.hostElement).not.toHaveText('Hello world');
});

it('should use hostElement when using query to find element', () => {
host = createHost(`<div *appUnless="true">Hello world</div>`);
expect(host.query('div')).not.toHaveText('Hello world');
});
});
5 changes: 0 additions & 5 deletions src/app/unless/unless.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ describe('HelloComponent', () => {
host = createHost(`<div *appUnless="true">Hello world</div>`);
expect(host.hostElement).not.toHaveText('Hello world');
});

it('should use hostElement when using query to find element', () => {
host = createHost(`<div *appUnless="true">Hello world</div>`);
expect(host.query('div')).not.toHaveText('Hello world');
});
});

0 comments on commit 8c00cde

Please sign in to comment.