Commiting where I am now
ADD
.vscode/launch.json
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "node",
+ "request": "launch",
+ "name": "Launch Program",
+ "skipFiles": [
+ "<node_internals>/**"
+ ],
+ "program": "${workspaceFolder}\\lib\\index.js",
+ "outFiles": [
+ "${workspaceFolder}/**/*.js"
+ ]
+ }
+ ]
+}
\ No newline at end of file

ADD
TestTracking.xlsx
TestTracking.xlsx
Binary files /dev/null and b/TestTracking.xlsx differ

MODIFY
package.json
package.json
"lint": "eslint \"src/**/*.js\" \"src/**/*.ts\"",
"lint-fix": "eslint \"src/**/*.js\" \"src/**/*.ts\" --fix",
"jest": "jest",
+ "test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand --watch",
"test": "npm run build; npm run lint; npm run jest",
"doc": "typedoc --out ./Documentation/api/ ./src/",
"prepublishOnly": "npm test && npm run build",

MODIFY
test/unit/acl/access-controller.test.ts
test/unit/acl/access-controller.test.ts
jest.mock('rdflib')
-import * as RdfLib from 'rdflib'
+// import * as RdfLib from 'rdflib'
jest.mock('solid-auth-client')
-import * as SolidAuthClient from 'solid-auth-client'
-
-import * as AccessController from '../../../src/acl/access-controller'
-
+// import * as SolidAuthClient from 'solid-auth-client'
+// import { DataBrowserContext } from 'pane-registry'
+const AccessController = require('../../../src/acl/access-controller')
+// just a note that the only public functions are isEditable, render, and save
describe('AccessController', () => {
+ debugger
it('exists', () => {
expect(AccessController).toBeTruthy()
})
+ // leaving this for now
+
+
+ const subject = new RdfLib.NamedNode('testing')
+ const noun = 'noun'
+ const context = new DataBrowserContext()
+ const statusElement = HTMLElement
+ const classes = new Record<'test','test'>
+ const targetIsProtected= false
+ const targetDoc = new RdfLib.NamedNode('testing')
+ const targetACLDoc = new RdfLib.NamedNode('testing')
+ const defaultHolder = null
+ const defaultACLDoc = null
+ const prospectiveDefaultHolder = undefined
+ const store
+ const dom
+ const controller = new AccessController(subject, noun, context, statusElement, classes, targetIsProtected, targetDoc, targetACLDoc, defaultHolder, defaultACLDoc, prospectiveDefaultHolder, store, dom);
+ it('exists', () => {
+ expect(controller.isEditable()).
+ }) */
})

ADD
test/unit/pad.test.ts
+const pad = require('../../src/pad')
+
+describe('lightColorHash', () => {
+ it('exists', () => {
+ expect(pad.lightColorHash).toBeInstanceOf(Function)
+ })
+ it('runs', () => {
+ expect(pad.lightColorHash(null)).toBe('#ffffff')
+ })
+})

Commiting where I am now