-
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.
- Loading branch information
Showing
5 changed files
with
22 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
node_modules |
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 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Project from "./project.mjs" | ||
import {describe,it} from 'node:test' | ||
import { describe, it } from 'node:test' | ||
import assert from 'node:assert' | ||
|
||
describe("Project", () => { | ||
|
@@ -8,17 +8,17 @@ describe("Project", () => { | |
name: "Test Project", | ||
email: "[email protected]", | ||
}) | ||
assert.equal(project.data.name,"Test Project") | ||
assert.equal(project.data.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") | ||
assert.equal(project.id, "someHash") | ||
}) | ||
|
||
it("should fail to find a project with this id", () => { | ||
const project = new Project("someHash") | ||
const project = new Project("someHash") | ||
assert.rejects(project.loadData()) | ||
}) | ||
}) |
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 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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name": "defaultTranscribe", | ||
"version": "0.0.1", | ||
"description": "The basic transcription module for TPEN 3, based on the https:/t-pen.org/TPEN/transcription.html document", | ||
"keywords": [ | ||
"transcription", | ||
"rectilinear", | ||
"plaintext", | ||
"default" | ||
], | ||
"indexPage": "index.html", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
"dependencies": {} | ||
"name": "defaultTranscribe", | ||
"version": "0.0.1", | ||
"description": "The basic transcription module for TPEN 3, based on the https:/t-pen.org/TPEN/transcription.html document", | ||
"keywords": [ | ||
"transcription", | ||
"rectilinear", | ||
"plaintext", | ||
"default" | ||
], | ||
"indexPage": "index.html", | ||
"author": "[email protected]", | ||
"license": "MIT", | ||
"dependencies": {} | ||
} |