-
-
Save dvallin/70c22edaa4da3254d8d00be4579b0314 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
describe("getters", () => { | |
it("finds tasks by title", () => { | |
const task1 = new Task("task1"); | |
const state = { tasks: [task1] }; | |
expect(getters.taskByTitle(state, getters)("task1")).toBe(task1); | |
expect(getters.taskByTitle(state, getters)("task2")).toBeUndefined(); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment