diff options
Diffstat (limited to 'packages/integrations/react/test/parsed-react-children.test.js')
-rw-r--r-- | packages/integrations/react/test/parsed-react-children.test.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/react/test/parsed-react-children.test.js b/packages/integrations/react/test/parsed-react-children.test.js index 1c845836f..5417705f0 100644 --- a/packages/integrations/react/test/parsed-react-children.test.js +++ b/packages/integrations/react/test/parsed-react-children.test.js @@ -1,15 +1,16 @@ -import { expect } from 'chai'; +import assert from 'node:assert/strict'; +import { describe, it } from 'node:test'; import convert from '../vnode-children.js'; describe('experimental react children', () => { it('has undefined as children for direct children', () => { const [imgVNode] = convert('<img src="abc"></img>'); - expect(imgVNode.props).to.deep.include({ children: undefined }); + assert.deepStrictEqual(imgVNode.props.children, undefined); }); it('has undefined as children for nested children', () => { const [divVNode] = convert('<div><img src="xyz"></img></div>'); const [imgVNode] = divVNode.props.children; - expect(imgVNode.props).to.deep.include({ children: undefined }); + assert.deepStrictEqual(imgVNode.props.children, undefined); }); }); |