renderer-spec - Add test for h1 basic

This commit is contained in:
2019-12-16 10:20:45 +05:30
parent 3f0947a195
commit ef7af9797c
+4
View File
@@ -37,3 +37,7 @@ test('should render plain text with simple Class Component', () => {
expect((render(<TestComponent />) as string).trim()).toBe('abcd');
});
test('should render plain H1 with text', () => {
expect((render(<h1>abcd</h1>) as string).trim()).toBe('# abcd');
});