Last active
August 29, 2015 14:14
-
-
Save catkins/00aa998cc88c4b6cc644 to your computer and use it in GitHub Desktop.
Collect Jasmine Results in JSON
This file contains 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
// pretty low-tech but works with jasmine 2.1's html runner in chrome 40 | |
var results = $('.symbol-summary > li').map(function(x) { | |
return { | |
description: this.attributes.title.value, | |
status: this.attributes.class.value, | |
id: this.id.substr(9) | |
}; | |
}).toArray(); | |
var json = JSON.stringify(results); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment