diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..40f6389 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,22 @@ +--- +name: Run tap tests + +on: + - pull_request + # Allow manually triggering the workflow. + - workflow_dispatch + +# Cancels all previous workflow runs for the same branch that have not yet completed. +concurrency: + # The concurrency group contains the workflow name and the branch name. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm install + - run: npm test + \ No newline at end of file diff --git a/test/oldm.mjs b/test/oldm.mjs index 9a6c46c..2ebc429 100644 --- a/test/oldm.mjs +++ b/test/oldm.mjs @@ -74,7 +74,7 @@ tap.test('two graphs merging', t => { t.end() }) -tap.test('seperator', t => { +tap.test('separator', t => { let turtle = ` @prefix : <#>. @prefix schema: . @@ -88,7 +88,7 @@ tap.test('seperator', t => { 'schema':'https://schema.org/', 'vcard':'http://www.w3.org/2006/vcard/ns#' }, - seperator: ':' + separator: ':' }) let data = oldmParser.parse(turtle, 'https://auke.solidcommunity.net/profile/card#me') t.same(''+data['vcard:fn'], 'Auke van Slooten') @@ -115,7 +115,7 @@ tap.test('xsdtypes', t => { 'schema':'https://schema.org/', 'vcard':'http://www.w3.org/2006/vcard/ns#' }, -// seperator: ':' +// separator: ':' }) let data = oldmParser.parse(turtle, 'https://auke.solidcommunity.net/profile/card#me') t.same(''+data.vcard$bday, '1972-09-20') @@ -126,7 +126,7 @@ tap.test('xsdtypes', t => { 'schema':'https://schema.org/', 'vcard':'http://www.w3.org/2006/vcard/ns#' }, - seperator: ':' + separator: ':' }) data = oldmParser.parse(turtle, 'https://auke.solidcommunity.net/profile/card#me') t.same(''+data['vcard:bday'], '1972-09-20')