Created
May 7, 2019 16:42
-
-
Save odoe/d4f6b33827630039a24a767c9e3c6e71 to your computer and use it in GitHub Desktop.
This file contains 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
// tests/unit/widgets/Profile.ts | |
const { describe, it } = intern.getInterface("bdd"); | |
import harness from "@dojo/framework/testing/harness"; | |
import { w, v } from "@dojo/framework/widget-core/d"; | |
import Profile from "../../../src/widgets/Profile"; | |
import * as css from "../../../src/widgets/styles/Profile.m.css"; | |
describe("Profile", () => { | |
it("default renders correctly", () => { | |
const h = harness(() => w(Profile, { username: "Dojo User" })); | |
h.expect(() => v("h1", { classes: [css.root] }, ["Welcome Dojo User!"])); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment