mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 08:40:27 +01:00 
			
		
		
		
	refactor(starter): upgrade to new version of gatsby
This commit is contained in:
		
							
								
								
									
										18
									
								
								src/components/Page/Page.test.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/components/Page/Page.test.tsx
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| import React from "react"; | ||||
| import renderer from "react-test-renderer"; | ||||
|  | ||||
| import Page from "./Page"; | ||||
|  | ||||
| describe("Page", () => { | ||||
|   const props = { | ||||
|     children: "test", | ||||
|     title: "test", | ||||
|   }; | ||||
|  | ||||
|   it("renders correctly", () => { | ||||
|     const tree = renderer | ||||
|       .create(<Page {...props}>{props.children}</Page>) | ||||
|       .toJSON(); | ||||
|     expect(tree).toMatchSnapshot(); | ||||
|   }); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user