update test
This commit is contained in:
@@ -13,7 +13,7 @@ exports[`Subtitle renders correctly 1`] = `
|
|||||||
className="outline-none w-full text-xs sm:text-lg sm:w-1/2 border-t-0 border-l-0 border-r-0 border solid border-gray-900 py-1 px-2 focus:border-blue-700"
|
className="outline-none w-full text-xs sm:text-lg sm:w-1/2 border-t-0 border-l-0 border-r-0 border solid border-gray-900 py-1 px-2 focus:border-blue-700"
|
||||||
id="subtitle"
|
id="subtitle"
|
||||||
onChange={[Function]}
|
onChange={[Function]}
|
||||||
value="subtitle"
|
value="A frontend developer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ describe("Subtitle", () => {
|
|||||||
const mockEvent = { target: { value: "This is a mock event" } }
|
const mockEvent = { target: { value: "This is a mock event" } }
|
||||||
const props = {
|
const props = {
|
||||||
data: {
|
data: {
|
||||||
subtitle: "subtitle",
|
subtitle: "A frontend developer",
|
||||||
},
|
},
|
||||||
handleDataChange: jest.fn().mockReturnValue({}),
|
handleDataChange: jest.fn().mockReturnValue({}),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user