Skip to content

Commit

Permalink
Fix: test spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cycjimmy committed Oct 23, 2018
1 parent 5c09d91 commit 0333880
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,11 @@ describe('ui spec', () => {
;

test('videoDefault.wrapper should be videoWrapper', () => {
expect(videoDefault.wrapper.id).toBe('videoWrapper');
expect(videoDefault.wrapper).toBe(videoWrapper);
expect(videoDefault.els.wrapper.id).toBe('videoWrapper');
expect(videoDefault.els.wrapper).toBe(videoWrapper);
});

test('videoWrapper.playerInstance should be videoDefault.player', () => {
expect(videoWrapper.playerInstance).toBe(videoDefault.player);
});

test('videoWrapper height should be equal to container height', () => {
expect(videoWrapper).not.toBe(videoDefault.container);
expect(videoDefault.container.parentNode).toBe(videoWrapper);
expect(videoWrapper.offsetHeight).toBe(videoDefault.container.offsetHeight);
});
});

0 comments on commit 0333880

Please sign in to comment.