mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
riot integration
This commit is contained in:
parent
94630b84c7
commit
c7b7c52cd2
@ -2,3 +2,4 @@
|
||||
|
||||
exports[`render a riot element can nest several tags 1`] = `"<matriochka><div><tag1><div>Inside tag1:<ul><li><tag2><div>Inside tag2:<ul><li><tag3><div>Inside tag3:<ul><li><tag4><div>Inside tag4:<ul><li><tag5><div>Inside tag5:<ul><li>Content</li></ul></div></tag5></li></ul></div></tag4></li></ul></div></tag3></li></ul></div></tag2></li></ul></div></tag1></div></matriochka>"`;
|
||||
|
||||
exports[`render a riot element can template some vars 1`] = `"<simpletest test=\\"with a parameter\\"><div>simple test (with a parameter). Oh, by the way (value is mapped to riotValue)</div></simpletest>"`;
|
||||
|
@ -83,8 +83,6 @@ describe('render a riot element', () => {
|
||||
)
|
||||
).toBe(true);
|
||||
|
||||
expect(rootElement.innerHTML).toEqual(
|
||||
'<simpletest test="with a parameter"><div>simple test (with a parameter). Oh, by the way (value is mapped to riotValue)</div></simpletest>'
|
||||
);
|
||||
expect(rootElement.innerHTML).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
2
lib/cli/test/fixtures/riot/public/index.html
vendored
2
lib/cli/test/fixtures/riot/public/index.html
vendored
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>vue</title>
|
||||
<title>riot</title>
|
||||
<link rel="stylesheet" href="assets/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
|
7
lib/cli/test/fixtures/riot/src/App.tag
vendored
7
lib/cli/test/fixtures/riot/src/App.tag
vendored
@ -4,12 +4,7 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
import Hello from './components/Hello.vue'
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
components: { Hello }
|
||||
}
|
||||
riot.mount('hello', {});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
1
lib/cli/test/fixtures/riot/src/main.js
vendored
1
lib/cli/test/fixtures/riot/src/main.js
vendored
@ -1,4 +1,3 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.tag'
|
||||
import Hello from './components/Hello.tag' // eslint-disable-line no-unused-vars
|
||||
import { mount } from 'riot'
|
||||
|
@ -5,7 +5,7 @@
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>vue</title>
|
||||
<title>riot</title>
|
||||
<link rel="stylesheet" href="assets/css/app.css">
|
||||
</head>
|
||||
<body>
|
||||
|
@ -4,12 +4,7 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
import Hello from './components/Hello.vue'
|
||||
|
||||
export default {
|
||||
name: 'app',
|
||||
components: { Hello }
|
||||
}
|
||||
riot.mount('hello', {});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
@ -1,4 +1,3 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App.tag'
|
||||
import Hello from './components/Hello.tag' // eslint-disable-line no-unused-vars
|
||||
import { mount } from 'riot'
|
||||
|
Loading…
x
Reference in New Issue
Block a user