Last active
February 12, 2017 20:57
-
-
Save siddhant3s/1e55f27329e015f142e3cb91e0fcf564 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
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