// src/tests/unit/widgets/Profile.ts | |
describe("Profile", () => { | |
it("default renders correctly", () => { | |
const h = harness(() => w(Profile, {})); | |
h.expect(profileAssertion); | |
}); | |
it("renders given username correctly", () => { | |
// update the expected result with a given username | |
const namedAssertion = profileAssertion.setChildren("~welcome", [ | |
"Welcome Kel Varnsen!" | |
]); | |
const h = harness(() => w(Profile, { username: "Kel Varnsen" })); | |
h.expect(namedAssertion); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment