mirror of https://github.com/sveltejs/svelte
parent
2705532cb0
commit
f80ace5fd6
@ -0,0 +1,19 @@
|
||||
import Store from '../../../../store.js';
|
||||
|
||||
const store = new Store({
|
||||
name: 'world'
|
||||
});
|
||||
|
||||
export default {
|
||||
solo: true,
|
||||
|
||||
store,
|
||||
|
||||
html: `<h1>Hello world!</h1>`,
|
||||
|
||||
test(assert, component, target) {
|
||||
store.set({ name: 'everybody' });
|
||||
|
||||
assert.htmlEqual(target.innerHTML, `<h1>Hello everybody!</h1>`);
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
<h1>Hello {{$name}}!</h1>
|
Loading…
Reference in new issue