let subscribeCalled = false; const fakeStore = val => ({ subscribe: cb => { cb(val); return { unsubscribe: () => { subscribeCalled = true; } }; } }); export default { props: { foo: fakeStore(1) }, html: `

1

`, async test({ assert, component, target }) { component.foo = fakeStore(5); return assert.htmlEqual(target.innerHTML, `

5

`); } };