started some test files.

changed dependencies around to make the program lighter in general.
build-validation
David Tookey 5 years ago
parent 99ed430049
commit 2dc0b21b30

@ -31,12 +31,8 @@
"dependencies": {
"electron-log": "^2.2.14",
"glob": "^7.1.0",
"highlight.js": "^9.3.0",
"update-electron-app": "^1.1.1",
"check-for-leaks": "^1.2.1",
"mustache": "^4.0.1",
"typescript": "^4.0.3",
"tslint": "^6.1.3",
"popper.js": "^1.16.1",
"jquery": "^3.5.1",
"bootstrap": "^4.5.3"
@ -45,6 +41,8 @@
"@types/jquery": "^3.5.1",
"@types/mocha": "^8.0.3",
"@types/chai": "^4.2.14",
"typescript": "^4.0.3",
"tslint": "^6.1.3",
"devtron": "^1.4.0",
"electron": "^7.2.4",
"electron-settings": "^3.0.7",
@ -57,6 +55,7 @@
"chai": "^4.2.0",
"mocha": "^8.2.0",
"nyc": "^15.1.0",
"ts-node": "^9.0.0"
"ts-node": "^9.0.0",
"check-for-leaks": "^1.2.1"
}
}

@ -0,0 +1,8 @@
const assert = require('assert');
describe('default', ()=>{
it('default-test', ()=>{
let res = 5+2;
assert.strictEqual(res, 7);
})
})

@ -1,5 +0,0 @@
describe('default', ()=>{
it('print', ()=>{
console.log("okay?")
})
})

@ -3,9 +3,14 @@ import {DocumentDirectory} from "../src/ts_source/fileutils";
const path = require('path');
describe('fileutils', ()=>{
it('DocumentDirectory Constructor fail-on-file', testDocumentDirectoryFailFile)
it('documentDirectoryConstructor', testDocumentDirectoryConstructor);
});
function testDocumentDirectoryFailFile(){
let directoryPath = path.join(__dirname, "../src/assets/documents");
}
function testDocumentDirectoryConstructor(){
let directoryPath = path.join(__dirname, "../src/assets/documents");
let documents = new DocumentDirectory(directoryPath);

Loading…
Cancel
Save