Skip to content

Instantly share code, notes, and snippets.

@siddhant3s
Last active February 12, 2017 20:57
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 siddhant3s/1e55f27329e015f142e3cb91e0fcf564 to your computer and use it in GitHub Desktop.
Save siddhant3s/1e55f27329e015f142e3cb91e0fcf564 to your computer and use it in GitHub Desktop.
function verify_har(har) {
if (!har.log) {
return {
status: false,
errors: [
'HAR file should have a logs section.',
],
};
}
if (!har.log.entries) {
return {
status: false,
errors: [
'HAR file should have entries section.',
],
};
}
return {status: true};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment