Skip to content

Commit 5e503d1

Browse files
author
Marvel Mathew
committed

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

spec/.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"Container": true,
1515
"equal": true,
1616
"notEqual": true,
17+
"it_only_db": true,
1718
"it_exclude_dbs": true,
1819
"describe_only_db": true,
1920
"describe_only": true,

spec/helper.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,14 @@ global.it_exclude_dbs = excluded => {
408408
}
409409
}
410410

411+
global.it_only_db = db => {
412+
if (process.env.PARSE_SERVER_TEST_DB === db) {
413+
return it;
414+
} else {
415+
return xit;
416+
}
417+
};
418+
411419
global.fit_exclude_dbs = excluded => {
412420
if (excluded.indexOf(process.env.PARSE_SERVER_TEST_DB) >= 0) {
413421
return xit;

0 commit comments

Comments
 (0)