Skip to content

Commit

Permalink
Fixed tests for includ-config-spec
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Sep 12, 2015
1 parent baa0017 commit 7de9bf5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/spec/core/include-config-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe("Core — Include config as JSON", function() {
return doc;
}, MAXOUT);
runs(function() {
var $script = $("#respecConfig", doc);
var $script = $("#initialUserConfig", doc);
expect($script[0].tagName).toEqual("SCRIPT");
expect($script.attr("id")).toEqual("respecFinalConfig");
expect($script.attr("id")).toEqual("initialUserConfig");
expect($script.attr("type")).toEqual("application/json");
flushIframes();
});
Expand All @@ -43,9 +43,9 @@ describe("Core — Include config as JSON", function() {
return doc;
}, MAXOUT);
runs(function() {
var $script = $("#respecConfig", doc);
var jsonConfig = JSON.stringify(doc.defaultView.respecConfig, null, 2);
expect($script.text()).toEqual(jsonConfig);
var $script = $("#initialUserConfig", doc);
var jsonConfig = JSON.stringify(doc.defaultView.respecConfig.initialUserConfig, null, 2);
expect($script[0].innerHTML).toEqual(jsonConfig);
flushIframes();
});
});
Expand Down

0 comments on commit 7de9bf5

Please sign in to comment.