🎨 Refactor state and add mock output

This commit is contained in:
Kevin Van Der Werff
2019-10-22 15:04:26 +02:00
parent 4bb5fde140
commit 330612ea4c
4 changed files with 124 additions and 29 deletions

86
test/output.json Normal file
View File

@@ -0,0 +1,86 @@
[
{
"title": "CSS",
"slug": "/css",
"resources": [
{
"title": "CSS Grid Generator",
"desc": "Visually create your css grid and export the code.",
"url": "https://cssgrid-generator.netlify.com/",
"tags": [
"generator",
"grid",
"layout",
"visual tool"
],
"cleanTitle": "cssgridgenerator",
"path": "/css?card=cssgridgenerator"
},
{
"title": "Keyframes Editor",
"desc": "An insanely simple way to create CSS animations",
"url": "https://keyframes.app/editor/",
"tags": [
"generator",
"animation",
"visual tool"
],
"cleanTitle": "keyframeseditor",
"path": "/css?card=keyframeseditor"
},
{
"title": "Flexbox Froggy",
"desc": "A game to learn Flexbox",
"url": "https://flexboxfroggy.com",
"tags": [
"educational",
"beginner"
],
"cleanTitle": "flexboxfroggy",
"path": "/css?card=flexboxfroggy"
}
]
},
{
"title": "Design",
"slug": "/design",
"resources": [
{
"title": "UX/UI Designer Roadmap 2017",
"desc": "Roadmap to becoming a UI/UX Designer in 2017",
"url": "https://github.com/togiberlin/ui-ux-designer-roadmap",
"tags": [
"career",
"ui",
"ux"
],
"cleanTitle": "ux/uidesignerroadmap2017",
"path": "/design?card=ux/uidesignerroadmap2017"
},
{
"title": "Undraw",
"desc": "Free vector illustrations for your website.",
"url": "https://undraw.co",
"tags": [
"illustration",
"svg",
"ui"
],
"cleanTitle": "undraw",
"path": "/design?card=undraw"
},
{
"title": "Practical UI tips",
"desc": "7 Tips to boost your UI design.",
"url": "https://medium.com/refactoring-ui/7-practical-tips-for-cheating-at-design-40c736799886",
"tags": [
"ui",
"tips",
"tricks"
],
"cleanTitle": "practicaluitips",
"path": "/design?card=practicaluitips"
}
]
}
]

View File

@@ -26,4 +26,4 @@ test('partiallyIncludesElOf 2', () => {
test('partiallyIncludesElOf 3', () => {
expect(P.partiallyIncludesElOf(['aa', 'b'], ['c'])).toBeFalsy
})
})