testaro 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Automation of accessibility testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,9 +5,9 @@
5
5
  */
6
6
  const fs = require('fs');
7
7
  const compile = () => {
8
- const issuesJSON = fs.readFileSync(`${__dirname}/scoring/package/issues.json`, 'utf8');
8
+ const issuesJSON = fs.readFileSync(`${__dirname}/package/issues.json`, 'utf8');
9
9
  const issues = JSON.parse(issuesJSON);
10
- const dataJSON = fs.readFileSync(`${__dirname}/scoring/package/data.json`, 'utf8');
10
+ const dataJSON = fs.readFileSync(`${__dirname}/package/data.json`, 'utf8');
11
11
  const reportData = JSON.parse(dataJSON);
12
12
  const reports = Object.values(reportData);
13
13
  // Initialize the list.
@@ -72,5 +72,5 @@ const compile = () => {
72
72
  return data;
73
73
  };
74
74
  fs.writeFileSync(
75
- `${__dirname}/scoring/package/correlations.json`, JSON.stringify(compile(), null, 2)
75
+ `${__dirname}/package/correlations.json`, JSON.stringify(compile(), null, 2)
76
76
  );
@@ -7,7 +7,7 @@
7
7
  */
8
8
  const fs = require('fs');
9
9
  const compile = () => {
10
- const dupsJSON = fs.readFileSync(`${__dirname}/scoring/package/duplications.json`, 'utf8');
10
+ const dupsJSON = fs.readFileSync(`${__dirname}/package/duplications.json`, 'utf8');
11
11
  const dups = JSON.parse(dupsJSON);
12
12
  // Initialize the object.
13
13
  const data = {
@@ -36,4 +36,4 @@ const compile = () => {
36
36
  });
37
37
  return data;
38
38
  };
39
- fs.writeFileSync(`${__dirname}/scoring/package/dupCounts.json`, JSON.stringify(compile(), null, 2));
39
+ fs.writeFileSync(`${__dirname}/package/dupCounts.json`, JSON.stringify(compile(), null, 2));
@@ -120,7 +120,7 @@ const compilers = {
120
120
  };
121
121
  const repo = process.argv[2];
122
122
  const compile = repo => {
123
- const dirPath = `${__dirname}/../${repo}/reports/script`;
123
+ const dirPath = `${__dirname}/../../${repo}/reports/script`;
124
124
  const batchDirNames = fs
125
125
  .readdirSync(dirPath, {withFileTypes: true})
126
126
  .filter(dirEnt => dirEnt.isDirectory())
@@ -168,4 +168,4 @@ const compile = repo => {
168
168
  });
169
169
  return data;
170
170
  };
171
- fs.writeFileSync(`${__dirname}/scoring/package/data.json`, JSON.stringify(compile(repo), null, 2));
171
+ fs.writeFileSync(`${__dirname}/package/data.json`, JSON.stringify(compile(repo), null, 2));
package/tests/radioSet.js CHANGED
@@ -12,7 +12,7 @@ exports.reporter = async (page, withItems) => {
12
12
  // If itemization is required:
13
13
  if (withItems) {
14
14
  // Add the body of the textOf function as a string to the array.
15
- const textOfBody = await fs.readFile(`${__dirname}/procs/test/textOf.txt`, 'utf8');
15
+ const textOfBody = await fs.readFile(`${__dirname}../procs/test/textOf.txt`, 'utf8');
16
16
  args.push(textOfBody);
17
17
  }
18
18
  // Get the result data.
@@ -2,10 +2,10 @@
2
2
  // Sample executor for Testaro.
3
3
 
4
4
  const options = {
5
- reports: `${__dirname}/../reports`,
5
+ reports: `${__dirname}/../../reports`,
6
6
  // To use the sample batch, uncomment the following line.
7
- batches: `${__dirname}/../batches/sample.json`,
8
- script: `${__dirname}/../scripts/app/sample.json`
7
+ batches: `${__dirname}/../../batches/sample.json`,
8
+ script: `${__dirname}/../../scripts/app/sample.json`
9
9
  };
10
10
  const {handleRequest} = require('../../index');
11
11
  handleRequest(options);