Skip to content

Commit

Permalink
Updated unit test to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Eriksson committed Dec 11, 2019
1 parent 3807895 commit 0ec532f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1097,14 +1097,14 @@ public void index_appended_to_head_in_npm()
+ "build/webcomponentsjs/webcomponents-loader.js\"></script>")));

Assert.assertTrue(
"index.js should be added to head for ES6 browsers. (type module)",
"index.js should be added to head for ES6 browsers. (type module with crossorigin)",
allElements.stream().map(Object::toString)
.anyMatch(element -> element
.equals("<script type=\"module\" src=\"./"
+ VAADIN_MAPPING
+ "build/index-1111.cache.js\" data-app-id=\""
+ testUI.getInternals().getAppId()
+ "\"></script>")));
+ "\" crossorigin></script>")));

Assert.assertTrue(
"index.js should be added to head for ES5 browsers. (deferred and nomodule)",
Expand Down

0 comments on commit 0ec532f

Please sign in to comment.