From 883a3ccd2f662f957689986fe90b15abfc1f3f2d Mon Sep 17 00:00:00 2001 From: newapx Date: Sun, 11 Mar 2018 12:00:45 +0400 Subject: [PATCH] fix for use Unit Testing https://ru.vuejs.org/v2/guide/unit-testing.html ``` it('correctly sets the message when created', () => { const vm = new Vue(MyComponent).$mount() expect(vm.message).toBe('bye!') }) ``` --- platform/nativescript/runtime/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/nativescript/runtime/index.js b/platform/nativescript/runtime/index.js index 65ef23ec..19e133ae 100644 --- a/platform/nativescript/runtime/index.js +++ b/platform/nativescript/runtime/index.js @@ -59,7 +59,7 @@ const mount = function(el, hydrating) { } }) } else { - mountComponent(this, el, hydrating) + return mountComponent(this, el, hydrating) } }