Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Commit

Permalink
fixup unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
agubler committed Oct 20, 2017
1 parent 5cc7163 commit 0b6a419
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/vdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,9 @@ describe('vdom', () => {
});

it('should remove styles', () => {
const projection = dom.create(v('div', { styles: { height: '20px' } }), projectorStub);
projection.update(v('div', { styles: { height: null } }));
assert.strictEqual(projection.domNode.outerHTML, '<div style=""></div>');
const projection = dom.create(v('div', { styles: { width: '30px', height: '20px' } }), projectorStub);
projection.update(v('div', { styles: { height: null, width: '30px' } }));
assert.strictEqual(projection.domNode.outerHTML, '<div style="width: 30px;"></div>');
});

it('should add styles', () => {
Expand Down

0 comments on commit 0b6a419

Please sign in to comment.