Skip to content

Commit

Permalink
Fix markup
Browse files Browse the repository at this point in the history
  • Loading branch information
enjikaka committed Jan 18, 2024
1 parent f9b6dea commit b5cf623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/frameRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class FrameRoutes {
const attributes = [];

attributes.push(`type="${inputType}"`);
attributes.push(`name="${propertyName}`);
attributes.push(`name="${propertyName}"`);

if (requiredProperties.includes(propertyName)) {
attributes.push("required");
Expand Down
2 changes: 1 addition & 1 deletion src/classes/frameRoutes.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("get", () => {
const text = await getResponse.text();

expect(text).toStrictEqual(
'<form><input type="text" name="firstName required /><input type="text" name="lastName required /><input type="number" name="age required /><input type="date" name="birthday /></form>',
'<form><input type="text" name="firstName" required /><input type="text" name="lastName" required /><input type="number" name="age" required /><input type="date" name="birthday" /></form>',
);
});
});

0 comments on commit b5cf623

Please sign in to comment.