File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ class StreamStore {
67
67
68
68
if ( graph && graph . termType !== 'DefaultGraph' ) {
69
69
url . searchParams . append ( 'graph' , graph . value )
70
+ } else {
71
+ url . searchParams . append ( 'default' , '' )
70
72
}
71
73
72
74
const res = await this . client . fetch ( url , {
@@ -97,6 +99,8 @@ class StreamStore {
97
99
98
100
if ( graph && graph . termType !== 'DefaultGraph' ) {
99
101
url . searchParams . append ( 'graph' , graph . value )
102
+ } else {
103
+ url . searchParams . append ( 'default' , '' )
100
104
}
101
105
102
106
const serialize = new Transform ( {
Original file line number Diff line number Diff line change @@ -84,11 +84,13 @@ describe('StreamStore', () => {
84
84
} )
85
85
} )
86
86
87
- it ( 'should not send the graph query parameter if the default graph is requested' , async ( ) => {
87
+ it ( 'should send the default parameter if the default graph is requested' , async ( ) => {
88
88
await withServer ( async server => {
89
+ let defaultParameter = null
89
90
let graphParameter = null
90
91
91
92
server . app . get ( '/' , async ( req , res ) => {
93
+ defaultParameter = req . query . default
92
94
graphParameter = req . query . graph
93
95
94
96
res . status ( 204 ) . end ( )
@@ -101,6 +103,7 @@ describe('StreamStore', () => {
101
103
const stream = store . read ( { method : 'GET' , graph : rdf . defaultGraph ( ) } )
102
104
await chunks ( stream )
103
105
106
+ strictEqual ( defaultParameter , '' )
104
107
strictEqual ( graphParameter , undefined )
105
108
} )
106
109
} )
You can’t perform that action at this time.
0 commit comments