Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 27, 2019 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/2c944c95969adca62edc74d96487072a to your computer and use it in GitHub Desktop.
Save IntegerMan/2c944c95969adca62edc74d96487072a to your computer and use it in GitHub Desktop.
var testCases = [];
var nextTestCaseId = 2;
class TestCase {
constructor(testCaseName, id) {
this.name = testCaseName;
this.isPassing = true;
this.id = id;
}
}
function buildInitialData() {
return [{
name: 'The app should not crash on startup',
isPassing: true,
id: '1'
}];
}
document.addEventListener("DOMContentLoaded", function() {
testCases = buildInitialData();
updateTestCases();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment