Last active
November 8, 2019 11:22
-
-
Save harrybeckwith/94a3fbac17f906f6cb4c096da990a3e9 to your computer and use it in GitHub Desktop.
A basic unit test file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Spinner from "@/ui/Spinner"; | |
import AppLoadingScreen from "./AppLoadingScreen"; | |
import { shallowMount } from "@vue/test-utils"; | |
import { expect } from "chai"; | |
describe("AppLoadingScreen", () => { | |
let component; | |
beforeEach(() => { | |
component = shallowMount(AppLoadingScreen); | |
}); | |
it("should render Spinner on mount", () => { | |
expect(component.find(Spinner).exists()).to.be.true; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment