Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cubap committed Jan 26, 2024
1 parent e280ec4 commit 4c8b004
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 20 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

node_modules
2 changes: 1 addition & 1 deletion api/project.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ export default class Project {
return await fetch(`/project/${this.id}`)
.then(response => response.json())
.then(project => this.data = project)
.catch(err=>new Promise.reject(err))
.catch(err => new Promise.reject(err))
}
}
10 changes: 5 additions & 5 deletions api/project.test.mjs
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", () => {
Expand All @@ -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())
})
})
3 changes: 3 additions & 0 deletions default-transcribe/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ class TpenTranscriptionElement extends HTMLElement {
fetchProject(projectID) {
fetch(`/transcriptions/${projectID}`)
.then(response => response.json())
}
}

26 changes: 13 additions & 13 deletions default-transcribe/manifest.json
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": {}
}

0 comments on commit 4c8b004

Please sign in to comment.