Skip to content

Commit

Permalink
Trim test data in createFacetsMap unit test
Browse files Browse the repository at this point in the history
Reduced code volume to enhance readability and efficiency.
  • Loading branch information
kasperbirch1 committed Oct 6, 2023
1 parent f93d812 commit 00355e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 210 deletions.
95 changes: 0 additions & 95 deletions src/components/facet-browser/__snapshots__/helper.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,6 @@

exports[`createFacetsMap 1`] = `
{
"fictionalCharacters:Batman": {
"key": "Batman",
"score": 4,
"term": "Batman",
},
"fictionalCharacters:Harry Potter": {
"key": "Harry Potter",
"score": 3,
"term": "Harry Potter",
},
"fictionalCharacters:Hermione Granger": {
"key": "Hermione Granger",
"score": 3,
"term": "Hermione Granger",
},
"fictionalCharacters:Justice League": {
"key": "Justice League",
"score": 4,
"term": "Justice League",
},
"fictionalCharacters:Ron Weasley": {
"key": "Ron Weasley",
"score": 3,
"term": "Ron Weasley",
},
"mainLanguages:dan": {
"key": "dan",
"score": 427,
Expand All @@ -37,26 +12,6 @@ exports[`createFacetsMap 1`] = `
"score": 82,
"term": "Engelsk",
},
"mainLanguages:fre": {
"key": "fre",
"score": 9,
"term": "Fransk",
},
"mainLanguages:ger": {
"key": "ger",
"score": 9,
"term": "Tysk",
},
"mainLanguages:ita": {
"key": "ita",
"score": 9,
"term": "Italiensk",
},
"materialTypesGeneral:abekat": {
"key": "abekat",
"score": 0,
"term": "abekat",
},
"materialTypesGeneral:artikler": {
"key": "artikler",
"score": 346,
Expand All @@ -82,56 +37,6 @@ exports[`createFacetsMap 1`] = `
"score": 9,
"term": "film",
},
"subjects:legetøj": {
"key": "legetøj",
"score": 165,
"term": "legetøj",
},
"subjects:legetøjsindustri": {
"key": "legetøjsindustri",
"score": 126,
"term": "legetøjsindustri",
},
"subjects:lego": {
"key": "lego",
"score": 101,
"term": "lego",
},
"subjects:legoklodser": {
"key": "legoklodser",
"score": 98,
"term": "legoklodser",
},
"subjects:virksomhedsledelse": {
"key": "virksomhedsledelse",
"score": 65,
"term": "virksomhedsledelse",
},
"year:2013": {
"key": "2013",
"score": 27,
"term": "2013",
},
"year:2014": {
"key": "2014",
"score": 31,
"term": "2014",
},
"year:2015": {
"key": "2015",
"score": 33,
"term": "2015",
},
"year:2017": {
"key": "2017",
"score": 35,
"term": "2017",
},
"year:2018": {
"key": "2018",
"score": 29,
"term": "2018",
},
}
`;

Expand Down
115 changes: 0 additions & 115 deletions src/components/facet-browser/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,46 +202,6 @@ if (import.meta.vitest) {
}
]
},
{
name: "materialTypesGeneral",
values: [
{
key: "abekat",
term: "abekat",
score: 0
}
]
},
{
name: "subjects",
values: [
{
key: "legetøj",
term: "legetøj",
score: 165
},
{
key: "legetøjsindustri",
term: "legetøjsindustri",
score: 126
},
{
key: "lego",
term: "lego",
score: 101
},
{
key: "legoklodser",
term: "legoklodser",
score: 98
},
{
key: "virksomhedsledelse",
term: "virksomhedsledelse",
score: 65
}
]
},
{
name: "mainLanguages",
values: [
Expand All @@ -254,21 +214,6 @@ if (import.meta.vitest) {
key: "eng",
term: "Engelsk",
score: 82
},
{
key: "fre",
term: "Fransk",
score: 9
},
{
key: "ger",
term: "Tysk",
score: 9
},
{
key: "ita",
term: "Italiensk",
score: 9
}
]
},
Expand Down Expand Up @@ -301,66 +246,6 @@ if (import.meta.vitest) {
score: 9
}
]
},
{
name: "year",
values: [
{
key: "2017",
term: "2017",
score: 35
},
{
key: "2015",
term: "2015",
score: 33
},
{
key: "2014",
term: "2014",
score: 31
},
{
key: "2018",
term: "2018",
score: 29
},
{
key: "2013",
term: "2013",
score: 27
}
]
},
{
name: "fictionalCharacters",
values: [
{
key: "Batman",
term: "Batman",
score: 4
},
{
key: "Justice League",
term: "Justice League",
score: 4
},
{
key: "Harry Potter",
term: "Harry Potter",
score: 3
},
{
key: "Hermione Granger",
term: "Hermione Granger",
score: 3
},
{
key: "Ron Weasley",
term: "Ron Weasley",
score: 3
}
]
}
];

Expand Down

0 comments on commit 00355e2

Please sign in to comment.