Skip to content

Instantly share code, notes, and snippets.

@gpincheiraa
Last active October 8, 2017 00:43
Show Gist options
  • Save gpincheiraa/eb5f34ed2aaefa2e40d9d1c186fbc50f to your computer and use it in GitHub Desktop.
Save gpincheiraa/eb5f34ed2aaefa2e40d9d1c186fbc50f to your computer and use it in GitHub Desktop.
todoList.component_spec.js- First Impressions using jest for TDD over AngularJS > 1.5.x — Part I
import { TodoListController } from "components/todoList.component"
describe("TodoListController", () => {
let controller
beforeEach(() => {
controller = new TodoListController()
})
it("Should have a defined controller", () => {
expect(controller).toBeInstanceOf(TodoListController)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment