diff --git a/src/components/__tests__/__snapshots__/addons.test.js.snap b/src/components/__tests__/__snapshots__/addons.test.js.snap
index 439d721..28ca1f5 100644
--- a/src/components/__tests__/__snapshots__/addons.test.js.snap
+++ b/src/components/__tests__/__snapshots__/addons.test.js.snap
@@ -99,6 +99,24 @@ exports[`Addons renders correctly 1`] = `
>
display top skills
+
+ }
+ title="Customize Streak Stats Card"
+ />
+ }
+ inputId="streak-stats"
+ onInputChange={[Function]}
+ >
+ display github streak stats
+
+
+ }
+ title="Customize Streak Stats Card"
+ />
+ }
+ inputId="streak-stats"
+ onInputChange={[Function]}
+ >
+
+
+
+
+
+
+ }
+ title="Customize Streak Stats Card"
+ />
+ }
+ inputId="streak-stats"
+ onInputChange={[Function]}
+ >
+
+
+
+
+
+
+ }
+ title="Customize Streak Stats Card"
+ />
+ }
+ inputId="streak-stats"
+ onInputChange={[Function]}
+ >
+
+
+
+
+
- Paypal
</p>
@@ -181,6 +181,7 @@ exports[`Markdown renders devDynamicBlogs is true 1`] = `
}
}
/>
+
+
`;
@@ -295,56 +297,56 @@ exports[`Markdown renders githubProfileTrophy is true 1`] = `
</p>
@@ -394,6 +396,7 @@ exports[`Markdown renders githubProfileTrophy is true 1`] = `
}
}
/>
+
+
`;
@@ -508,56 +512,56 @@ exports[`Markdown renders githubProfileTrophy is true 2`] = `
</p>
@@ -607,6 +611,7 @@ exports[`Markdown renders githubProfileTrophy is true 2`] = `
}
}
/>
+
+
`;
@@ -721,56 +727,56 @@ exports[`Markdown renders topLanguages is true 1`] = `
</p>
@@ -820,6 +826,7 @@ exports[`Markdown renders topLanguages is true 1`] = `
}
}
/>
+
+
`;
@@ -934,56 +942,56 @@ exports[`Markdown renders topLanguages is true and githubStats is true 1`] = `
</p>
@@ -1033,6 +1041,7 @@ exports[`Markdown renders topLanguages is true and githubStats is true 1`] = `
}
}
/>
+
+
`;
@@ -1147,56 +1157,56 @@ exports[`Markdown renders twitterBadge is true 1`] = `
</p>
@@ -1246,6 +1256,7 @@ exports[`Markdown renders twitterBadge is true 1`] = `
}
}
/>
+
+
`;
@@ -1360,56 +1372,56 @@ exports[`Markdown renders visitorsBadge is true 1`] = `
</p>
@@ -1459,6 +1471,7 @@ exports[`Markdown renders visitorsBadge is true 1`] = `
}
}
/>
+
+
`;
@@ -1570,56 +1584,56 @@ exports[`Markdown renders without link.currentWork 1`] = `
</p>
@@ -1669,6 +1683,7 @@ exports[`Markdown renders without link.currentWork 1`] = `
}
}
/>
+
+
`;
@@ -1783,56 +1799,56 @@ exports[`Markdown renders without prefix.title and data.title 1`] = `
</p>
@@ -1882,6 +1898,7 @@ exports[`Markdown renders without prefix.title and data.title 1`] = `
}
}
/>
+
+
`;
@@ -1996,56 +2014,56 @@ exports[`Markdown renders without subtitle 1`] = `
</p>
@@ -2095,6 +2113,7 @@ exports[`Markdown renders without subtitle 1`] = `
}
}
/>
+
+
`;
diff --git a/src/components/__tests__/__snapshots__/markdownPreview.test.js.snap b/src/components/__tests__/__snapshots__/markdownPreview.test.js.snap
index 83a942e..b20d165 100644
--- a/src/components/__tests__/__snapshots__/markdownPreview.test.js.snap
+++ b/src/components/__tests__/__snapshots__/markdownPreview.test.js.snap
@@ -20,7 +20,7 @@ exports[`DisplayWork Preview renders correctly 1`] = `
`;
@@ -313,13 +317,13 @@ exports[`Skills Preview renders correctly 1`] = `
/>
@@ -338,112 +342,112 @@ exports[`Social Preview renders correctly 1`] = `
/>
-
-
-
+
+
+
@@ -498,7 +502,7 @@ exports[`TwitterBadgePreview Preview renders correctly with show true 1`] = `
`;
@@ -519,13 +523,13 @@ exports[`VisitorsBadge Preview renders correctly with show true 1`] = `
-
+

-
+
`;
diff --git a/src/utils/__tests__/validation.test.js b/src/utils/__tests__/validation.test.js
new file mode 100644
index 0000000..e89d29b
--- /dev/null
+++ b/src/utils/__tests__/validation.test.js
@@ -0,0 +1,30 @@
+import {
+ isGitHubUsernameValid,
+ isMediumUsernameValid,
+ isTwitterUsernameValid,
+} from "../validation"
+
+describe("validation", () => {
+ it("isGitHubUsernameValid", () => {
+ expect(
+ isGitHubUsernameValid(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
+ )
+ ).toBe(false)
+ expect(isGitHubUsernameValid("rahuldkjain")).toBe(true)
+ })
+
+ it("isMediumUsernameValid", () => {
+ expect(isMediumUsernameValid("rahuldkjain")).toBe(false)
+ expect(isMediumUsernameValid("@rahuldkjain")).toBe(true)
+ })
+
+ it("isTwitterUsernameValid", () => {
+ expect(
+ isTwitterUsernameValid(
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
+ )
+ ).toBe(false)
+ expect(isTwitterUsernameValid("rahuldkjain")).toBe(true)
+ })
+})