Skip to content

Commit

Permalink
Make tests more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterwigboldus-visma committed Nov 22, 2024
1 parent 144a5ff commit 7fde203
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/__tests__/new-objects.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ test('Check if the object has the keys', async (t) => {

const getFlatKeysTestCases = [
{
description: 'Check if we can a single keys',
description: 'Check if we can a single keys (flat)',
arr: {
turtle: 'Leonardo',
food: 'Pizza',
Expand All @@ -454,7 +454,7 @@ const getFlatKeysTestCases = [
}
},
{
description: 'Check if we can get multiple keys',
description: 'Check if we can get multiple keys (flat)',
arr: {
turtle: 'Leonardo',
food: 'Pizza',
Expand All @@ -467,7 +467,7 @@ const getFlatKeysTestCases = [
}
},
{
description: 'Check if we only get existing keys',
description: 'Check if we only get existing keys (flat)',
arr: {
turtle: 'Leonardo',
food: 'Pizza',
Expand All @@ -482,7 +482,7 @@ const getFlatKeysTestCases = [
}
},
{
description: 'Check if we get an empty object if no keys exist',
description: 'Check if we get an empty object if no keys exist (flat)',
arr: {
turtle: 'Leonardo',
food: 'Pizza',
Expand All @@ -492,7 +492,7 @@ const getFlatKeysTestCases = [
expectedValue: undefined
},
{
description: 'Check if we get the default value if no keys exists',
description: 'Check if we get the default value if no keys exists (flat)',
arr: {
turtle: 'Leonardo',
food: 'Pizza',
Expand All @@ -507,7 +507,7 @@ const getFlatKeysTestCases = [
}
},
{
description: 'Check if we get deep nested keys',
description: 'Check if we get deep nested keys (flat)',
arr: {
a: 1,
b: 2,
Expand Down

0 comments on commit 7fde203

Please sign in to comment.