Created
January 28, 2019 05:08
-
-
Save deadlysyn/fdfb66644383d6efa0c436e83852225e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const testRunner = async (req, next) => { | |
testResults.database = await databaseTest(); | |
if (testResults.database.message !== 'OK') { | |
testResults.status = 500; | |
} | |
testResults.network = await networkTest(); | |
if (testResults.network.message !== 'OK') { | |
testResults.status = 500; | |
} | |
// etc... | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment