Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Fix test linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wschella committed May 16, 2019
1 parent c95bc34 commit 54ff72d
Show file tree
Hide file tree
Showing 53 changed files with 53 additions and 70 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "tsc",
"watch": "tsc --watch",
"lint": "tslint --project .",
"lint-test": "tslint ./test/**/*.ts",
"test": "jest",
"test-ci": "jest --ci --maxWorkers=4 --coverage",
"test-debug": "yarn test-debug-lin",
Expand Down
1 change: 0 additions & 1 deletion test/spec/abs01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,3 @@ describe('We should respect the abs01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/bnode01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ describe.skip('We should respect the bnode01 spec', () => {
* </sparql>
*
*/

1 change: 0 additions & 1 deletion test/spec/bnode02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ describe.skip('We should respect the bnode02 spec', () => {
* </sparql>
*
*/

1 change: 0 additions & 1 deletion test/spec/ceil01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ describe('We should respect the ceil01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/concat01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ describe('We should respect the concat01 spec', () => {
* </results>
* </sparql>
*/

25 changes: 20 additions & 5 deletions test/spec/concat02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,26 @@ describe('We should respect the concat02 spec', () => {
* <variable name="str"/>
* </head>
* <results>
* <result><binding name="str"><literal datatype="http://www.w3.org/2001/XMLSchema#string">abcabc</literal></binding></result>
* <result><binding name="str"><literal datatype="http://www.w3.org/2001/XMLSchema#string">abcdef</literal></binding></result>
* <result><binding name="str"><literal datatype="http://www.w3.org/2001/XMLSchema#string">defabc</literal></binding></result>
* <result><binding name="str"><literal datatype="http://www.w3.org/2001/XMLSchema#string">defdef</literal></binding></result>
* <result>
* <binding name="str">
* <literal datatype="http://www.w3.org/2001/XMLSchema#string">abcabc</literal>
* </binding>
* </result>
* <result>
* <binding name="str">
* <literal datatype="http://www.w3.org/2001/XMLSchema#string">abcdef</literal>
* </binding>
* </result>
* <result>
* <binding name="str">
* <literal datatype="http://www.w3.org/2001/XMLSchema#string">defabc</literal>
* </binding>
* </result>
* <result>
* <binding name="str">
* <literal datatype="http://www.w3.org/2001/XMLSchema#string">defdef</literal>
* </binding>
* </result>
* <result><binding name="str"><literal xml:lang="en">englishenglish</literal></binding></result>
* <result><binding name="str"><literal xml:lang="fr">françaisfrançais</literal></binding></result>
* <result><binding name="str"><literal xml:lang="ja">日本語日本語</literal></binding></result>
Expand Down Expand Up @@ -150,4 +166,3 @@ describe('We should respect the concat02 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/contains01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ describe('We should respect the contains01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/day-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ describe('We should respect the day-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/encode01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ describe('We should respect the encode01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/ends01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,3 @@ describe('We should respect the ends01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/floor01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,3 @@ describe('We should respect the floor01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/hours-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ describe('We should respect the hours-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/if01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,3 @@ describe('We should respect the if01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/in01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ describe('We should respect the in01 spec', () => {
* <boolean>true</boolean>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/in02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ describe('We should respect the in02 spec', () => {
* <boolean>false</boolean>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/lcase01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ describe('We should respect the lcase01 spec', () => {
* </results>
* </sparql>
*/

3 changes: 1 addition & 2 deletions test/spec/length01.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Data from './_data';

import { aliases as a, testAll, int } from '../util/utils';
import { aliases as a, int, testAll } from '../util/utils';

/**
* REQUEST: length01.rq
Expand Down Expand Up @@ -79,4 +79,3 @@ describe('We should respect the length01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/md5-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ describe('We should respect the md5-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/md5-02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ describe('We should respect the md5-02 spec', () => {
* </results>
* </sparql>
*/

3 changes: 1 addition & 2 deletions test/spec/minutes-01.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Data from './_data';

import { aliases as a, testAll, int } from '../util/utils';
import { aliases as a, int, testAll } from '../util/utils';

/**
* REQUEST: minutes-01.rq
Expand Down Expand Up @@ -64,4 +64,3 @@ describe('We should respect the minutes-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/month-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ describe('We should respect the month-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/notin01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ describe('We should respect the notin01 spec', () => {
* <boolean>true</boolean>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/now01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ describe.skip('We should respect the now01 spec', () => {
* <boolean>true</boolean>
* </sparql>
*/

4 changes: 2 additions & 2 deletions test/spec/plus-1-corrected.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import * as Data from './_data';

import { aliases as a, testAll, int, testAllErrors, decimal } from '../util/utils';
import { aliases as a, decimal, int, testAll, testAllErrors } from '../util/utils';

/**
* REQUEST: plus-1-corrected.rq
*
* PREFIX : <http://example/>
* SELECT ?x ?y ( ?x + ?y AS ?sum)
* WHERE
* { ?s :p ?x ; :q ?y .
* { ?s :p ?x ; :q ?y .
* }
*/

Expand Down
7 changes: 3 additions & 4 deletions test/spec/plus-2-corrected.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import * as Data from './_data';

import { aliases as a, testAll, testAllErrors, int, decimal } from '../util/utils';
import { aliases as a, decimal, int, testAll, testAllErrors } from '../util/utils';

/**
* REQUEST: plus-2-corrected.rq
*
* PREFIX : <http://example/>
*
*
* SELECT ?x ?y ( str(?x) + str(?y) AS ?sum)
* WHERE
* { ?s :p ?x ; :q ?y .
* { ?s :p ?x ; :q ?y .
* }
*/

Expand Down Expand Up @@ -128,4 +128,3 @@ describe('We should respect the plus-2-corrected spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/rand01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ describe('We should respect the rand01 spec', () => {
* <boolean>true</boolean>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/replace01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,3 @@ describe('We should respect the replace01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/replace02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ describe('We should respect the replace02 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/replace03.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ describe.skip('We should respect the replace03 spec', () => {
* </results>
* </sparql>
*/

3 changes: 1 addition & 2 deletions test/spec/round01.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Data from './_data';

import { aliases as a, testAll, int, decimal } from '../util/utils';
import { aliases as a, decimal, int, testAll } from '../util/utils';

/**
* REQUEST: round01.rq
Expand Down Expand Up @@ -76,4 +76,3 @@ describe('We should respect the round01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/seconds-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ describe('We should respect the seconds-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/sha1-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,3 @@ describe('We should respect the sha1-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/sha1-02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ describe('We should respect the sha1-02 spec', () => {
* </results>
* </sparql>
*/

4 changes: 3 additions & 1 deletion test/spec/sha256-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ describe('We should respect the sha256-01 spec', () => {
* </head>
* <results>
* <result>
* <binding name="hash"><literal>2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae</literal></binding>
* <binding name="hash">
* <literal>2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae</literal>
* </binding>
* </result>
* </results>
* </sparql>
Expand Down
5 changes: 3 additions & 2 deletions test/spec/sha256-02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ describe('We should respect the sha256-02 spec', () => {
* </head>
* <results>
* <result>
* <binding name="hash"><literal>0fbe868d1df356ca9df7ebff346da3a56280e059a7ea81186ef885b140d254ee</literal></binding>
* <binding name="hash">
* <literal>0fbe868d1df356ca9df7ebff346da3a56280e059a7ea81186ef885b140d254ee</literal>
* </binding>
* </result>
* </results>
* </sparql>
*/

4 changes: 2 additions & 2 deletions test/spec/sha512-01.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// tslint:disable:max-line-length
import * as Data from './_data';

import { aliases as a, testAll } from '../util/utils';
Expand Down Expand Up @@ -34,8 +35,7 @@ import { aliases as a, testAll } from '../util/utils';
describe('We should respect the sha512-01 spec', () => {
const { s1 } = Data.data();
testAll([
// tslint:disable-next-line: max-line-length
`SHA512(${s1}) = "f7fbba6e0636f890e56fbbf3283e524c6fa3204ae298382d624741d0dc6638326e282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7"`
`SHA512(${s1}) = "f7fbba6e0636f890e56fbbf3283e524c6fa3204ae298382d624741d0dc6638326e282c41be5e4254d8820772c5518a2c5a8c0c7f7eda19594a7eb539453e1ed7"`,
]);
});

Expand Down
9 changes: 6 additions & 3 deletions test/spec/sha512-02.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// tslint:disable:max-line-length
import * as Data from './_data';

import { aliases as a, testAll } from '../util/utils';
Expand Down Expand Up @@ -28,7 +29,6 @@ import { aliases as a, testAll } from '../util/utils';
describe('We should respect the sha512-02 spec', () => {
const { s8 } = Data.hashUnicode();
testAll([
// tslint:disable-next-line: max-line-length
`SHA512(${s8}) = "b433ed0e60c818bea72d3aa1a43db89b3ed2b624597407b7912bbb7685f2e45ae5500e092da5f938391d282b26bc43e4035b12460c93ab5e2e1a05d582331d85"`,
]);
});
Expand All @@ -43,9 +43,12 @@ describe('We should respect the sha512-02 spec', () => {
* </head>
* <results>
* <result>
* <binding name="hash"><literal>b433ed0e60c818bea72d3aa1a43db89b3ed2b624597407b7912bbb7685f2e45ae5500e092da5f938391d282b26bc43e4035b12460c93ab5e2e1a05d582331d85</literal></binding>
* <binding name="hash">
* <literal>
* b433ed0e60c818bea72d3aa1a43db89b3ed2b624597407b7912bbb7685f2e45ae5500e092da5f938391d282b26bc43e4035b12460c93ab5e2e1a05d582331d85
* </literal>
* </binding>
* </result>
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/starts01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ describe('We should respect the starts01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strafter02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ describe('We should respect the strafter02 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strbefore01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ describe('We should respect the strbefore01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strbefore02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,3 @@ describe('We should respect the strbefore02 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strdt01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,3 @@ describe('We should respect the strdt01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strdt02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,3 @@ describe('We should respect the strdt02 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strlang01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ describe('We should respect the strlang01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/strlang03.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,3 @@ describe('We should respect the strlang03 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/substring01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ describe('We should respect the substring01 spec', () => {
* </sparql>
*
*/

1 change: 0 additions & 1 deletion test/spec/substring02.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ describe('We should respect the substring02 spec', () => {
* </results>
* </sparql>
*/

5 changes: 3 additions & 2 deletions test/spec/timezone-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ describe('We should respect the timezone-01 spec', () => {
* </result>
* <result>
* <binding name="s"><uri>http://example.org/d2</uri></binding>
* <binding name="x"><literal datatype="http://www.w3.org/2001/XMLSchema#dayTimeDuration">-PT8H</literal></binding>
* <binding name="x">
* <literal datatype="http://www.w3.org/2001/XMLSchema#dayTimeDuration">-PT8H</literal>
* </binding>
* </result>
* <result>
* <binding name="s"><uri>http://example.org/d3</uri></binding>
Expand All @@ -66,4 +68,3 @@ describe('We should respect the timezone-01 spec', () => {
* </results>
* </sparql>
*/

1 change: 0 additions & 1 deletion test/spec/tz-01.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ describe('We should respect the tz-01 spec', () => {
* </results>
* </sparql>
*/

Loading

0 comments on commit 54ff72d

Please sign in to comment.