Match Values - Test Summary Report

Started: 2024-03-06 18:42:17
Suites (1)
1 passed
0 failed
0 pending
Tests (20)
20 passed
0 failed
0 pending
match > match value
should match the pattern "format": "h1" -> 20
passed
0.002s
match > match value
should match the pattern "format": "title" -> 16
passed
0s
match > match value
should match the pattern "format": "oops" -> 13
passed
0.001s
match > match value
should match the pattern "number": 1 -> "a"
passed
0s
match > match value
should match the pattern "number": 2 -> "b"
passed
0.001s
match > match value
should match the pattern "number": "title" -> "any"
passed
0s
match > match value
should throw when _ is not the last branch
passed
0.001s
match > match value
should throw when there is no match
passed
0s
match > match conditions
should get the expected result: 5 -> "ok"
passed
0.001s
match > match conditions
should get the expected result: 7 -> "great"
passed
0s
match > match conditions
should get the expected result: {"name": "Smith"} -> "Hello"
passed
0s
match > match conditions
should get the expected result: {"name": "Marie"} -> "Bonjour"
passed
0s
match > match conditions
should get the expected result: 4 -> "default"
passed
0.001s
match > match conditions
should throw when _ is not the last branch
passed
0s
match > match conditions
should throw when _ there is an invalid branch
passed
0.001s
match > match conditions
should throw when _ there is a branch with only 1 element
passed
0s
match > match conditions
should throw when there is no match
passed
0s
match > match lazily
should get the expected result: 20
passed
0.001s
match > match lazily
should get the expected result: 18
passed
0s
match > match lazily
should get the expected result: 13
passed
0s