summaryrefslogtreecommitdiff
path: root/test/plugins/genericjs/GenericJsScriptEngineTest.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugins/genericjs/GenericJsScriptEngineTest.hpp')
-rw-r--r--test/plugins/genericjs/GenericJsScriptEngineTest.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/plugins/genericjs/GenericJsScriptEngineTest.hpp b/test/plugins/genericjs/GenericJsScriptEngineTest.hpp
index 8e3ffea..b7f95da 100644
--- a/test/plugins/genericjs/GenericJsScriptEngineTest.hpp
+++ b/test/plugins/genericjs/GenericJsScriptEngineTest.hpp
@@ -99,7 +99,7 @@ TEST(GENERIC_JS_TEST_NAME, returnObject)
{
GENERIC_JS_TEST_SCOPE
Variant res = scope->run(
- "var obj = {\"key1\": 42, \"key2\": \"Hello World\", \"key3\": false}; obj");
+ "({\"key1\": 42, \"key2\": \"Hello World\", \"key3\": false})");
ASSERT_EQ(VariantType::map, res.getType());
std::map<std::string, Variant> m = res.getMapValue();