🆕 cleanup for redesign+rewrite
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
[
|
||||
{
|
||||
"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"]
|
||||
},
|
||||
{
|
||||
"title": "Keyframes Editor",
|
||||
"desc": "An insanely simple way to create CSS animations",
|
||||
"url": "https://keyframes.app/editor/",
|
||||
"tags": ["generator", "animation", "visual tool"]
|
||||
},
|
||||
{
|
||||
"title": "Flexbox Froggy",
|
||||
"desc": "A game to learn Flexbox",
|
||||
"url": "https://flexboxfroggy.com",
|
||||
"tags": ["educational", "beginner"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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"]
|
||||
},
|
||||
{
|
||||
"title": "Undraw",
|
||||
"desc": "Free vector illustrations for your website.",
|
||||
"url": "https://undraw.co",
|
||||
"tags": ["illustration", "svg", "ui"]
|
||||
},
|
||||
{
|
||||
"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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -1,86 +0,0 @@
|
||||
[
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -1,41 +0,0 @@
|
||||
import * as P from '../utils/pure.js'
|
||||
import mockCategories from './mockCategories.json'
|
||||
import mockOutput from './mockOutput.json'
|
||||
|
||||
test('includesElOf 1', () => {
|
||||
expect(P.includesElOf([1, 2])([2])).toBeTruthy
|
||||
})
|
||||
|
||||
test('includesElOf 2', () => {
|
||||
expect(P.includesElOf([1, 2], [3])).toBeFalsy
|
||||
})
|
||||
|
||||
test('includesElOf 3', () => {
|
||||
expect(P.includesElOf(['a', 'b'])(['a', 'c'])).toBeTruthy
|
||||
})
|
||||
|
||||
test('includesElOf 4', () => {
|
||||
expect(P.includesElOf(['aa', 'b'])(['a', 'c'])).toBeFalsy
|
||||
})
|
||||
|
||||
test('partiallyIncludesElOf 1', () => {
|
||||
expect(P.partiallyIncludesElOf(['a', 'b'], ['a'])).toBeTruthy
|
||||
})
|
||||
|
||||
test('partiallyIncludesElOf 2', () => {
|
||||
expect(P.partiallyIncludesElOf(['aa', 'b'])(['a', 'c'])).toBeTruthy
|
||||
})
|
||||
|
||||
test('partiallyIncludesElOf 3', () => {
|
||||
expect(P.partiallyIncludesElOf(['aa', 'b'], ['c', 'd'])).toBeFalsy
|
||||
})
|
||||
|
||||
test('get all tags', () => {
|
||||
expect(P.getAllTags(mockCategories)).toStrictEqual([
|
||||
"generator", "grid", "layout", "visual tool", "animation", "educational", "beginner", "career", "ui", "ux", "illustration", "svg", "tips", "tricks",
|
||||
])
|
||||
})
|
||||
|
||||
test('transform resources', () => {
|
||||
expect(P.transformToResources(mockCategories)).toStrictEqual(mockOutput)
|
||||
})
|
||||
Reference in New Issue
Block a user