Skip to content

Instantly share code, notes, and snippets.

Created April 26, 2020 06:28
What would you like to do?
Flood Element Execution Script (repository:
const winston = require('./helpers/winston');
const fileCleanup = require("./helpers/file-helper");
const testHelpers = require("./helpers/element-test-helper");
//remove all old results and logs`--- Cleaning up all old files ---`);
// register tests to run
const floodTests = [
];"--- Starting Flood Element tests ---");
// run tests
//log results
.then(testResults => {
return testResults;
.then(async testResults => {
await testHelpers.delay(1000);
const testsPassedSuccessfully = testResults.every(test => test.successful === true)
testsPassedSuccessfully ?`All tests passed successfully!`) :`One/All tests passed failed!`);"--- Completed Flood Element tests ---");
testsPassedSuccessfully ? process.exit(0) : process.exit(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment