We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68e966 commit 2fb8854Copy full SHA for 2fb8854
test/utils.js
@@ -90,15 +90,17 @@
90
if ( !content ) {
91
ok(false, [
92
'"' + requestURL + '"',
93
- 'should return an object literal in the content body',
94
- 'with name and value keys'
+ 'content should not be empty'
95
].join(' '));
96
done();
97
return;
98
}
99
- var result = JSON.parse(content);
100
- callback(result.value, iframeDocument.cookie);
101
- done();
+ try {
+ var result = JSON.parse(content);
+ callback(result.value, iframeDocument.cookie);
+ } finally {
102
+ done();
103
+ }
104
});
105
iframe.src = requestURL;
106
0 commit comments