diff --git a/flow-client/src/test-gwt/java/com/vaadin/client/GwtMessageHandlerTest.java b/flow-client/src/test-gwt/java/com/vaadin/client/GwtMessageHandlerTest.java index f13fe4e4512..0ab37032e0b 100644 --- a/flow-client/src/test-gwt/java/com/vaadin/client/GwtMessageHandlerTest.java +++ b/flow-client/src/test-gwt/java/com/vaadin/client/GwtMessageHandlerTest.java @@ -184,7 +184,7 @@ public void testMessageProcessing_dynamicDependencyIsHandledBeforeApplyingChange // create a dependency JsonObject dep = Json.createObject(); dep.put(Dependency.KEY_TYPE, Dependency.Type.DYNAMIC_IMPORT.toString()); - dep.put(Dependency.KEY_EXPRESSION, + dep.put(Dependency.KEY_URL, "return new Promise(function(resolve){ window.testEvents = window.testEvents||[]; " + "window.testEvents.push('test-dependency'); resolve(); });"); array.set(0, dep);