observable.spec.ts — vue Source File
Architecture documentation for observable.spec.ts, a typescript file in the vue codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a10c4f64_1e18_4d08_8cf9_e8593f40e8fd["observable.spec.ts"] db9e7bef_009d_3918_6e7d_543a36a38d75["vue"] a10c4f64_1e18_4d08_8cf9_e8593f40e8fd --> db9e7bef_009d_3918_6e7d_543a36a38d75 style a10c4f64_1e18_4d08_8cf9_e8593f40e8fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import Vue from 'vue'
describe('Global API: observable', () => {
it('should work', done => {
const state = Vue.observable({
count: 0
})
const app = new Vue({
render(h) {
return h('div', [
h('span', state.count),
h(
'button',
{
on: {
click: () => {
state.count++
}
}
},
'+'
)
])
}
}).$mount()
expect(app.$el.querySelector('span').textContent).toBe('0')
app.$el.querySelector('button').click()
waitForUpdate(() => {
expect(app.$el.querySelector('span').textContent).toBe('1')
}).then(done)
})
})
Dependencies
- vue
Source
Frequently Asked Questions
What does observable.spec.ts do?
observable.spec.ts is a source file in the vue codebase, written in typescript.
What does observable.spec.ts depend on?
observable.spec.ts imports 1 module(s): vue.
Where is observable.spec.ts in the architecture?
observable.spec.ts is located at test/unit/features/global-api/observable.spec.ts (directory: test/unit/features/global-api).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free