Skip to content

Commit

Permalink
chore: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Apr 1, 2024
1 parent f01ece6 commit d654f53
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 64 deletions.
4 changes: 2 additions & 2 deletions test/ComunicaEngine-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SELECT_TYPES = `
`;

const PROFILE_URL = 'https://www.w3.org/People/Berners-Lee/card#i';
const OTHER_PROFILE_URL = 'https://ruben.inrupt.net/profile/card';
const OTHER_PROFILE_URL = 'https://ruben.verborgh.org/#me';

describe('An ComunicaEngine instance without default source', () => {
const engine = new ComunicaEngine();
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('An ComunicaEngine instance without default source', () => {
const sources = [[[PROFILE_URL]], Promise.resolve(OTHER_PROFILE_URL)];
const result = engine.execute(SELECT_TYPES, Promise.resolve(sources));
const items = await readAll(result);
expect(items).toHaveLength(9);
expect(items).toHaveLength(30);
});

it('yields results for a SELECT query with an RDF/JS source', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"entries": [
{
"_id": "f0491d22fe47e2a51bfe7d6f00b682c3",
"_id": "022848f719653c8b524b5c9258c54790",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -23,7 +23,7 @@
{
"_fromType": "array",
"name": "user-agent",
"value": "Comunica/actor-http-fetch (Node.js v17.4.0; linux)"
"value": "Comunica/actor-http-fetch (Node.js v20.11.0; linux)"
},
{
"_fromType": "array",
Expand All @@ -35,7 +35,7 @@
"value": "www.w3.org"
}
],
"headersSize": 464,
"headersSize": 465,
"httpVersion": "HTTP/1.1",
"method": "GET",
"queryString": [],
Expand All @@ -48,15 +48,38 @@
"size": 5895,
"text": " @prefix : <http://xmlns.com/foaf/0.1/> .\n @prefix B: <https://www.w3.org/People/Berners-Lee/> .\n @prefix Be: <./> .\n @prefix Pub: <https://timbl.com/timbl/Public/> .\n @prefix blog: <http://dig.csail.mit.edu/breadcrumbs/blog/> .\n @prefix card: <https://www.w3.org/People/Berners-Lee/card#> .\n @prefix cc: <http://creativecommons.org/ns#> .\n @prefix cert: <http://www.w3.org/ns/auth/cert#> .\n @prefix con: <http://www.w3.org/2000/10/swap/pim/contact#> .\n @prefix dc: <http://purl.org/dc/elements/1.1/> .\n @prefix dct: <http://purl.org/dc/terms/> .\n @prefix doap: <http://usefulinc.com/ns/doap#> .\n @prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .\n @prefix ldp: <http://www.w3.org/ns/ldp#> .\n @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n @prefix s: <http://www.w3.org/2000/01/rdf-schema#> .\n @prefix schema: <http://schema.org/> .\n @prefix sioc: <http://rdfs.org/sioc/ns#> .\n @prefix solid: <http://www.w3.org/ns/solid/terms#> .\n @prefix space: <http://www.w3.org/ns/pim/space#> .\n @prefix vcard: <http://www.w3.org/2006/vcard/ns#> .\n @prefix w3c: <http://www.w3.org/data#> .\n @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .\n \n <../../DesignIssues/Overview.html> dc:title \"Design Issues for the World Wide Web\";\n :maker card:i .\n \n <> rdf:type :PersonalProfileDocument;\n cc:license <http://creativecommons.org/licenses/by-nc/3.0/>;\n dc:title \"Tim Berners-Lee's FOAF file\";\n :maker card:i;\n :primaryTopic card:i .\n \n <#i> cert:key [\n rdf:type cert:RSAPublicKey;\n cert:exponent 65537;\n cert:modulus \"ebe99c737bd3670239600547e5e2eb1d1497da39947b6576c3c44ffeca32cf0f2f7cbee3c47001278a90fc7fc5bcf292f741eb1fcd6bbe7f90650afb519cf13e81b2bffc6e02063ee5a55781d420b1dfaf61c15758480e66d47fb0dcb5fa7b9f7f1052e5ccbd01beee9553c3b6b51f4daf1fce991294cd09a3d1d636bc6c7656e4455d0aff06daec740ed0084aa6866fcae1359de61cc12dbe37c8fa42e977c6e727a8258bb9a3f265b27e3766fe0697f6aa0bcc81c3f026e387bd7bbc81580dc1853af2daa099186a9f59da526474ef6ec0a3d84cf400be3261b6b649dea1f78184862d34d685d2d587f09acc14cd8e578fdd2283387821296f0af39b8d8845\"^^xsd:hexBinary ] .\n \n <http://dig.csail.mit.edu/2005/ajar/ajaw/data#Tabulator> doap:developer card:i .\n \n <http://dig.csail.mit.edu/2007/01/camp/data#course> :maker card:i .\n \n blog:4 dc:title \"timbl's blog on DIG\";\n s:seeAlso <http://dig.csail.mit.edu/breadcrumbs/blog/feed/4>;\n :maker card:i .\n \n <http://dig.csail.mit.edu/data#DIG> :member card:i .\n \n <http://wiki.ontoworld.org/index.php/_IRW2006> dc:title \"Identity, Reference and the Web workshop 2006\";\n con:participant card:i .\n \n <http://www.ecs.soton.ac.uk/~dt2/dlstuff/www2006_data#panel-panelk01> s:label \"The Next Wave of the Web (Plenary Panel)\";\n con:participant card:i .\n \n <http://www.w3.org/2000/10/swap/data#Cwm> doap:developer card:i .\n \n <http://www.w3.org/2011/Talks/0331-hyderabad-tbl/data#talk> dct:title \"Designing the Web for an Open Society\";\n :maker card:i .\n \n w3c:W3C :member card:i .\n \n <https://timbl.com/timbl/Public/friends.ttl> rdf:type :PersonalProfileDocument;\n cc:license <http://creativecommons.org/licenses/by-nc/3.0/>;\n dc:title \"Tim Berners-Lee's editable profile\";\n :maker card:i;\n :primaryTopic card:i .\n \n card:i rdf:type con:Male,\n :Person;\n sioc:avatar <images/timbl-image-by-Coz-cropped.jpg>;\n schema:owns <https://timblbot.inrupt.net/profile/card#me>;\n s:label \"Tim Berners-Lee\";\n s:seeAlso <https://timbl.com/timbl/Public/friends.ttl>;\n con:assistant card:amy;\n con:homePage Be:;\n con:office [\n con:address [\n con:city \"Cambridge\";\n con:country \"USA\";\n con:postalCode \"02139\";\n con:street \"32 Vassar Street\";\n con:street2 \"MIT CSAIL Building 32\" ];\n geo:location [\n geo:lat \"42.361860\";\n geo:long \"-71.091840\" ] ];\n con:preferredURI \"https://www.w3.org/People/Berners-Lee/card#i\";\n con:publicHomePage Be:;\n vcard:fn \"Tim Berners-Lee\";\n vcard:hasAddress [\n rdf:type vcard:Work;\n vcard:locality \"Cambridge\";\n vcard:postal-code \"02139\";\n vcard:region \"MA\";\n vcard:street-address \"32 Vassar Street\" ];\n ldp:inbox Pub:Inbox;\n space:preferencesFile <https://timbl.com/timbl/Data/preferences.n3>;\n space:storage Pub:,\n <https://timbl.inrupt.net/>,\n <https://timbl.solid.community/>;\n solid:editableProfile <https://timbl.com/timbl/Public/friends.ttl>;\n solid:oidcIssuer <https://timbl.com>;\n solid:profileBackgroundColor \"#ffffff\";\n solid:profileHighlightColor \"#00467E\";\n solid:publicTypeIndex <https://timbl.com/timbl/Public/PublicTypeIndex.ttl>;\n :account <http://en.wikipedia.org/wiki/User:Timbl>,\n <http://twitter.com/timberners_lee>,\n <http://www.reddit.com/user/timbl/>;\n :based_near [\n geo:lat \"42.361860\";\n geo:long \"-71.091840\" ];\n :family_name \"Berners-Lee\";\n :givenname \"Timothy\";\n :homepage B:;\n :img <https://www.w3.org/Press/Stock/Berners-Lee/2001-europaeum-eighth.jpg>;\n :mbox <mailto:timbl@w3.org>;\n :mbox_sha1sum \"965c47c5a70db7407210cef6e4e6f5374a525c5c\";\n :name \"Timothy Berners-Lee\";\n :nick \"TimBL\",\n \"timbl\";\n :openid B:;\n :title \"Sir\";\n :weblog blog:4;\n :workplaceHomepage <https://www.w3.org/> .\n \n"
},
"cookies": [],
"cookies": [
{
"domain": ".w3.org",
"expires": "2024-04-01T21:47:02.000Z",
"httpOnly": true,
"name": "__cf_bm",
"path": "/",
"sameSite": "None",
"secure": true,
"value": "jzcp2Z.XZ81CLoM1tSwP_Kb_oJ11ZOWrzGZ06QTMbOM-1712006222-1.0.1.1-xyceXk5igbkCd8HjY1Pcte6lt_fDVmE0KD6ta4fNktfLzyVLhliB.3M6Q8lJOj_Nhx48T8sts28RCQlIf6qOYw"
}
],
"headers": [
{
"name": "date",
"value": "Fri, 04 Mar 2022 05:59:41 GMT"
"value": "Mon, 01 Apr 2024 21:17:02 GMT"
},
{
"name": "content-type",
"value": "text/turtle"
},
{
"name": "content-length",
"value": "5895"
},
{
"name": "connection",
"value": "keep-alive"
},
{
"name": "vary",
"value": "Origin,Accept"
"value": "Origin,Accept, Accept-Encoding"
},
{
"name": "last-modified",
Expand All @@ -66,21 +89,13 @@
"name": "etag",
"value": "\"1707-590a0b6682940\""
},
{
"name": "accept-ranges",
"value": "bytes"
},
{
"name": "content-length",
"value": "5895"
},
{
"name": "cache-control",
"value": "max-age=21600"
},
{
"name": "expires",
"value": "Fri, 04 Mar 2022 11:59:41 GMT"
"value": "Tue, 02 Apr 2024 03:17:02 GMT"
},
{
"name": "access-control-allow-origin",
Expand All @@ -106,43 +121,64 @@
"name": "access-control-expose-headers",
"value": "User, Location, Link, Vary, Last-Modified, ETag, Accept-Patch, Accept-Post, Updates-Via, Allow, Content-Length, Accept"
},
{
"name": "content-type",
"value": "text/turtle"
},
{
"name": "x-backend",
"value": "ssl-mirrors"
"value": "www-mirrors"
},
{
"name": "x-request-id",
"value": "6221aacd9bee7682"
"value": "86db9a8cbe1a6f27"
},
{
"name": "strict-transport-security",
"value": "max-age=15552000; includeSubdomains; preload"
},
{
"name": "content-security-policy",
"value": "upgrade-insecure-requests"
"value": "frame-ancestors 'self' https://cms.w3.org/ https://cms-dev.w3.org/; upgrade-insecure-requests"
},
{
"name": "cf-cache-status",
"value": "BYPASS"
},
{
"name": "accept-ranges",
"value": "bytes"
},
{
"_fromType": "array",
"name": "set-cookie",
"value": "__cf_bm=jzcp2Z.XZ81CLoM1tSwP_Kb_oJ11ZOWrzGZ06QTMbOM-1712006222-1.0.1.1-xyceXk5igbkCd8HjY1Pcte6lt_fDVmE0KD6ta4fNktfLzyVLhliB.3M6Q8lJOj_Nhx48T8sts28RCQlIf6qOYw; path=/; expires=Mon, 01-Apr-24 21:47:02 GMT; domain=.w3.org; HttpOnly; Secure; SameSite=None"
},
{
"name": "server",
"value": "cloudflare"
},
{
"name": "cf-ray",
"value": "86db9a8cbe1a6f27-CDG"
},
{
"name": "alt-svc",
"value": "h3=\":443\"; ma=86400"
}
],
"headersSize": 840,
"headersSize": 1319,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2022-03-04T05:59:40.462Z",
"time": 1178,
"startedDateTime": "2024-04-01T21:17:00.886Z",
"time": 233,
"timings": {
"blocked": -1,
"connect": -1,
"dns": -1,
"receive": 0,
"send": 0,
"ssl": -1,
"wait": 1178
"wait": 233
}
}
],
Expand Down
Loading

0 comments on commit d654f53

Please sign in to comment.