dojo / test-extras

:rocket: Dojo 2 - set of modules to help with testing Dojo.
http://dojo.io
Other
0 stars 14 forks source link

assertRender does not compare some arrays properly #71

Closed kitsonk closed 6 years ago

kitsonk commented 7 years ago

Bug

When asserting a render, and the render returns an [ undefined ] as children, there is no way to compare it, providing a [ undefined ] still results in an assertion error being thrown.

Code

import assertRender from '@dojo/test-extras/support/assertRender';
import { v } from '@dojo/widget-core/d';

assertRender(v('div', {}, [ undefined ], v('div', {}, [ undefined ]);

Expected behavior:

Should not throw.

Actual behavior:

Throws with a AssertionError

agubler commented 6 years ago

This should not be an issue since the test-extras refactor #102