Skip to content

Commit 5b053d2

Browse files
committed
Add function parameter to it_id
1 parent 853cc93 commit 5b053d2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

spec/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"equal": true,
1616
"expectAsync": true,
1717
"notEqual": true,
18+
"it_id": true,
1819
"it_only_db": true,
1920
"it_only_mongodb_version": true,
2021
"it_only_postgres_version": true,

spec/helper.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,14 @@ try {
440440
}
441441

442442
// Disable test if its UUID is found in testExclusionList
443-
global.it_id = id => {
443+
global.it_id = (id, func) => {
444444
if (testExclusionList.includes(id)) {
445445
return xit;
446446
} else {
447-
return it;
447+
if(func === undefined)
448+
return it;
449+
else
450+
return func;
448451
}
449452
};
450453

0 commit comments

Comments
 (0)