Skip to content

Commit

Permalink
refactor: apply review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek committed Nov 25, 2024
1 parent c79cb45 commit 7e79c3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`OCheckbox tests > render correctly 1`] = `
"<div class="o-chk" data-oruga="checkbox"><input id="v-0" type="checkbox" data-oruga-input="checkbox" class="o-chk__input" true-value="true" false-value="false" autocomplete="off" aria-checked="false">
<!--v-if-->
</div>"
"<div class="o-chk" data-oruga="checkbox"><input id="v-0" type="checkbox" data-oruga-input="checkbox" class="o-chk__input" true-value="true" false-value="false" autocomplete="off" aria-checked="false" aria-labelledby="v-1"><label id="v-1" for="v-0" class="o-chk__label">
<!--
@slot Content slot, default is label prop
-->My Input
</label></div>"
`;
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe("OCheckbox tests", () => {
enableAutoUnmount(afterEach);

test("render correctly", () => {
const wrapper = mount(OCheckbox);
const wrapper = mount(OCheckbox, { props: { label: "My Input" } });
expect(!!wrapper.vm).toBeTruthy();
expect(wrapper.exists()).toBeTruthy();
expect(wrapper.attributes("data-oruga")).toBe("checkbox");
Expand Down

0 comments on commit 7e79c3c

Please sign in to comment.