Skip to content

Instantly share code, notes, and snippets.

@odoe
Created May 7, 2019 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odoe/d4f6b33827630039a24a767c9e3c6e71 to your computer and use it in GitHub Desktop.
Save odoe/d4f6b33827630039a24a767c9e3c6e71 to your computer and use it in GitHub Desktop.
// 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