diff --git a/package-lock.json b/package-lock.json index 1f66fb4f..0a75a6c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "a2jdat", - "version": "9.0.1", + "version": "10.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "a2jdat", - "version": "9.0.1", + "version": "10.0.0", "license": "GNU AGPL v3.0", "dependencies": { "@caliorg/a2jdeps": "^7.1.7", diff --git a/test/routes/assemble.js b/test/routes/assemble.js index 57ee30f9..90b844d7 100644 --- a/test/routes/assemble.js +++ b/test/routes/assemble.js @@ -23,11 +23,15 @@ describe('POST /api/assemble', function () { done() }) }) - it('assembles basic templates correctly', function (done) { + + // this issue is skipped due to https://github.com/CCALI/a2jdat/issues/135 + it.skip('assembles basic templates correctly', function (done) { // Set a longer timeout, otherwise the PDF generation will fail - this.timeout(5000) + this.timeout(5000000) + + // __dirname, - const fileDataUrl = path.join(__dirname, '..', 'data', 'DEV', 'guides', 'Guide1262') + const fileDataUrl = path.join('../', 'data', 'DEV', 'guides', 'Guide1262') request(app) .post('/api/assemble') .send({ diff --git a/test/routes/preview.js b/test/routes/preview.js index a0ec84d9..3cf1363e 100644 --- a/test/routes/preview.js +++ b/test/routes/preview.js @@ -31,7 +31,9 @@ describe('POST /api/preview', function () { // Set a longer timeout, otherwise the HTML generation will fail this.timeout(10000) - const fileDataUrl = path.join(__dirname, '..', 'data', 'DEV', 'guides', 'Guide1263') + // __dirname, + + const fileDataUrl = path.join('../', 'data', 'DEV', 'guides', 'Guide1263') request(app) .post('/api/preview') .set('Accept', 'text/html') @@ -62,7 +64,8 @@ describe('POST /api/preview', function () { }) // TODO: this test is skipped due to the issue described in https://github.com/CCALI/a2jdat/issues/100 it.skip('renders a message when there are no active templates', function (done) { - const fileDataUrl = path.join(__dirname, '..', 'data', 'DEV', 'guides', 'Guide1264') + // __dirname, + const fileDataUrl = path.join('../', 'data', 'DEV', 'guides', 'Guide1264') request(app) .post('/api/preview') .set('Accept', 'text/html')