Skip to content

Commit 5f79e2c

Browse files
committed
docs: update
1 parent 930d9a6 commit 5f79e2c

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
lines changed

questions/14-dynamic-css-values/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/14-dynamic-css-values/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/14-dynamic-css-values/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import AppRaw from "./App.vue?raw"
44

55
describe("DomPortal", () => {
66
it("render to body", () => {
7-
expect(AppRaw).toContain("color: v-bind(theme)")
7+
expect(AppRaw).toContain(atob("Y29sb3I6IHYtYmluZCh0aGVtZSk="))
88
})
99
})

questions/218-h-render-function/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import MyButton from "./MyButton.ts"
2+
import MyButton from "./MyButton"
33
44
const onClick = () => {
5-
console.log('onClick')
5+
console.log("onClick")
66
}
77
88
</script>

questions/218-h-render-function/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/218-h-render-function/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/218-h-render-function/index.test.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,33 @@ import MyButton from "./MyButton"
66
describe("Render function h()", () => {
77
it("renders a 'MyButton'", () => {
88
const wrapper = mount(MyButton)
9-
expect(wrapper.element.tagName.toLocaleLowerCase()).toBe('button')
9+
expect(wrapper.element.tagName.toLocaleLowerCase()).toBe("button")
1010
})
1111

12-
it("disabled", async () => {
12+
it("disabled", async() => {
1313
const wrapper = mount(MyButton, {
1414
props: {
15-
disabled: true
16-
}
15+
disabled: true,
16+
},
1717
})
18-
expect(wrapper.find('button').attributes()).toBeDefined()
19-
20-
await wrapper.trigger('click')
21-
expect(wrapper.emitted('click')).toBeUndefined()
18+
expect(wrapper.find("button").attributes()).toBeDefined()
19+
20+
await wrapper.trigger("click")
21+
expect(wrapper.emitted("click")).toBeUndefined()
2222
})
2323

2424
it("slot", () => {
2525
const wrapper = mount(MyButton, {
2626
slots: {
27-
default: 'my button'
28-
}
27+
default: "my button",
28+
},
2929
})
30-
expect(wrapper.text()).toBe('my button')
30+
expect(wrapper.text()).toBe("my button")
3131
})
3232

33-
it('custom click defined', () => {
33+
it("custom click defined", () => {
3434
const wrapper = mount(MyButton)
35-
wrapper.trigger('click')
36-
expect(wrapper.emitted().customClick || wrapper.emitted()['custom-click']).toBeDefined()
35+
wrapper.trigger("click")
36+
expect(wrapper.emitted().customClick || wrapper.emitted()["custom-click"]).toBeTruthy()
3737
})
3838
})

questions/27-global-css/README.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/27-global-css/README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

questions/27-global-css/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import AppRaw from "./App.vue?raw"
44

55
describe("DomPortal", () => {
66
it("render to body", () => {
7-
expect(AppRaw).toContain(":global(body)")
7+
expect(AppRaw).toContain(atob("Omdsb2JhbChib2R5KQ=="))
88
})
99
})

0 commit comments

Comments
 (0)