We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is currently blocked because the main build of the DLx spec isn't working, due to a broken link to the GeoJSON spec.
Waiting on digitallinguistics/data-format#330
The text was updated successfully, but these errors were encountered:
In .travis.yml:
.travis.yml
before_script: - npm install @digitallinguistics/spec yamljs
In test.js:
test.js
const AJV = require(`../node_modules/@digitallinguistics/spec/test/utilities/ajv.js`); const path = require(`path`); const { readFile } = require(`fs`).promises; describe(`tags2dlx`, function() { let ajv; let convert; let text; let validate; beforeAll(async function() { ajv = await AJV(); // eslint-disable-line new-cap validate = data => ajv.validate(`Text`, data); ({ default: convert } = await import(`../src/index.js`)); text = await readFile(path.join(__dirname, `./test.txt`), `utf8`); }); it(`returns a valid DLx Text object`, function() { const output = convert(text); const isValid = validate(output); if (!isValid) fail(JSON.stringify(ajv.errors, null, 2)); }); });
Sorry, something went wrong.
No branches or pull requests
This is currently blocked because the main build of the DLx spec isn't working, due to a broken link to the GeoJSON spec.
Waiting on digitallinguistics/data-format#330
The text was updated successfully, but these errors were encountered: