Skip to content

Commit

Permalink
fix(top-app-bar): clientHeight unit test (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
태재영 authored and Matt Goo committed Feb 19, 2019
1 parent c4a2a01 commit 9c7330b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unit/top-app-bar/index.test.tsx
Expand Up @@ -212,10 +212,8 @@ test('#adapter.getTopAppBarHeight should return clientHeight', () => {
const options = {attachTo: div};
const wrapper = mount<TopAppBar>(<TopAppBar title='Hi' />, options);
const topAppBarHeight = wrapper.instance().adapter.getTopAppBarHeight();
// 18 is the rendered height in pixels. It won't have the actual
// top app bar height since the css is not applied. 18 is the height
// of the title element.
assert.equal(topAppBarHeight, 18);
const realDOMHeight = wrapper.getDOMNode().clientHeight;
assert.equal(topAppBarHeight, realDOMHeight);
div.remove();
});

Expand Down

0 comments on commit 9c7330b

Please sign in to comment.