Skip to content

Instantly share code, notes, and snippets.

@deadlysyn
Created January 28, 2019 05:08
Show Gist options
  • Save deadlysyn/fdfb66644383d6efa0c436e83852225e to your computer and use it in GitHub Desktop.
Save deadlysyn/fdfb66644383d6efa0c436e83852225e to your computer and use it in GitHub Desktop.
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