Skip to content

Instantly share code, notes, and snippets.

@odoe odoe/Profile.ts
Created May 7, 2019

Embed
What would you like to do?
// 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
You can’t perform that action at this time.