Skip to content

Commit

Permalink
Improved component test.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsJohnnyGrid committed Feb 22, 2025
1 parent 5384a90 commit 8fdc3a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mount } from "@vue/test-utils";
import { describe, it, expect } from "vitest";

import UButton from "./UButton.vue";
import UButton from "../UButton.vue";

describe("UButton.vue", () => {
it("component renders", () => {
Expand All @@ -27,6 +27,6 @@ describe("UButton.vue", () => {
},
});

expect(component.text()).toContain(result);
expect(component.text()).toBe(result);
});
});

0 comments on commit 8fdc3a3

Please sign in to comment.