single-spa-vue
Advanced tools
Comparing version 1.5.4 to 1.6.0
@@ -118,2 +118,4 @@ (function (global, factory) { | ||
} | ||
return mountedInstances.instance; | ||
}); | ||
@@ -120,0 +122,0 @@ } |
{ | ||
"name": "single-spa-vue", | ||
"version": "1.5.4", | ||
"version": "1.6.0", | ||
"description": "a single-spa plugin for vue.js applications", | ||
@@ -5,0 +5,0 @@ "main": "lib/single-spa-vue.js", |
@@ -90,2 +90,3 @@ const defaultOpts = { | ||
} | ||
return mountedInstances.instance; | ||
}) | ||
@@ -92,0 +93,0 @@ } |
@@ -155,2 +155,15 @@ import singleSpaVue from './single-spa-vue' | ||
}) | ||
it(`mounts will return promise with vue instance`, () => { | ||
const lifecycles = new singleSpaVue({ | ||
Vue, | ||
appOptions: {}, | ||
}) | ||
return lifecycles.bootstrap(props).then(() => lifecycles.mount(props).then((instance) => { | ||
expect(Vue).toHaveBeenCalled() | ||
expect(instance instanceof Vue).toBeTruthy() | ||
})).then(() => { | ||
return lifecycles.unmount(props) | ||
}) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
24283
374