Skip to content

Commit

Permalink
Command-line processing now test covered (#610)
Browse files Browse the repository at this point in the history
* Command-line processing now test covered

* Report highest-level exceptions

* Add comment for stdin
  • Loading branch information
pmcb55 authored Oct 8, 2021
1 parent 0264bbb commit f769c07
Show file tree
Hide file tree
Showing 11 changed files with 633 additions and 482 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html

## Unreleased

- Moved all the command-line processing code to be now under code coverage.

## 1.0.4 2021-10-01

- Added an optional `widocoLanguages` configuration option for each vocabulary
Expand Down
337 changes: 0 additions & 337 deletions index.js

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "@inrupt/artifact-generator",
"version": "1.0.4",
"description": "A generator for building artifacts (e.g. Java JARs, NPM modules, etc.) from RDF vocabularies.",
"main": "index.js",
"main": "src/index.js",
"bin": {
"artifact-generator": "index.js"
"artifact-generator": "src/index.js"
},
"scripts": {
"test": "npm run format && npm run lint && jest",
"start": "node index.js",
"format": "prettier --write \"index.js\" \"src/**/*.js\"",
"start": "node src/index.js",
"format": "prettier --write \"src/**/*.js\"",
"lint": "eslint src --ext js,jsx",
"preversion": "npm test"
},
Expand Down
4 changes: 2 additions & 2 deletions src/DatasetHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ module.exports = class DatasetHandler {
return result;
}

buildTemplateInput() {
async buildTemplateInput() {
const result = {};

result.rollupVersion = this.vocabData.rollupVersion;
Expand Down Expand Up @@ -701,7 +701,7 @@ module.exports = class DatasetHandler {
result.storeLocalCopyOfVocabDirectory =
this.vocabData.storeLocalCopyOfVocabDirectory;

Resource.storeLocalCopyOfResource(
await Resource.storeLocalCopyOfResource(
result.storeLocalCopyOfVocabDirectory,
result.vocabName,
result.namespace,
Expand Down
Loading

0 comments on commit f769c07

Please sign in to comment.