-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jest is out. What a day.
- Loading branch information
Showing
6 changed files
with
28 additions
and
6,353 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Project from "./project.mjs" | ||
import {describe,it} from 'node:test' | ||
import assert from 'node:assert' | ||
|
||
describe("Project", () => { | ||
it("should create a project with a this config", () => { | ||
const project = new Project({ | ||
name: "Test Project", | ||
email: "[email protected]", | ||
}) | ||
assert.equal(project.data.name,"Test Project") | ||
assert.equal(project.data.email,"[email protected]") | ||
}) | ||
|
||
it("should initialize a project with this id", () => { | ||
const project = new Project("someHash") | ||
assert.equal(project.id,"someHash") | ||
}) | ||
|
||
it("should fail to find a project with this id", () => { | ||
const project = new Project("someHash") | ||
assert.rejects(project.loadData()) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.