From 4c8b0043513ddea498376d9ef2e9a44c0aef6232 Mon Sep 17 00:00:00 2001 From: cubap Date: Fri, 26 Jan 2024 11:46:29 -0600 Subject: [PATCH] whitespace --- .gitignore | 1 - api/project.mjs | 2 +- api/project.test.mjs | 10 +++++----- default-transcribe/main.js | 3 +++ default-transcribe/manifest.json | 26 +++++++++++++------------- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index e212594..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ - node_modules diff --git a/api/project.mjs b/api/project.mjs index ca733dc..398edbc 100644 --- a/api/project.mjs +++ b/api/project.mjs @@ -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)) } } diff --git a/api/project.test.mjs b/api/project.test.mjs index 039c90f..e6d9a68 100644 --- a/api/project.test.mjs +++ b/api/project.test.mjs @@ -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: "test@example.com", }) - assert.equal(project.data.name,"Test Project") - assert.equal(project.data.email,"test@example.com") + assert.equal(project.data.name, "Test Project") + assert.equal(project.data.email, "test@example.com") }) 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()) }) }) diff --git a/default-transcribe/main.js b/default-transcribe/main.js index 4602473..2da0580 100644 --- a/default-transcribe/main.js +++ b/default-transcribe/main.js @@ -15,3 +15,6 @@ class TpenTranscriptionElement extends HTMLElement { fetchProject(projectID) { fetch(`/transcriptions/${projectID}`) .then(response => response.json()) + } +} + diff --git a/default-transcribe/manifest.json b/default-transcribe/manifest.json index 87559c7..0e33420 100644 --- a/default-transcribe/manifest.json +++ b/default-transcribe/manifest.json @@ -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": "cubap@slu.edu", - "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": "cubap@slu.edu", + "license": "MIT", + "dependencies": {} }