@@ -10,7 +10,7 @@ describe('HTTP APIs', function() {
1010
1111 var emptyResponse = function ( res ) {
1212 if ( res . text . length !== 0 ) {
13- error ( "Not empty response" ) ;
13+ console . log ( "Not empty response" ) ;
1414 }
1515 } ;
1616 var getLink = function ( res , rel ) {
@@ -31,10 +31,10 @@ describe('HTTP APIs', function() {
3131 var link = getLink ( res , rel ) ;
3232 if ( link ) {
3333 if ( link !== value ) {
34- error ( "Not same value" ) ;
34+ console . log ( "Not same value" ) ;
3535 }
3636 } else {
37- error ( "Header does not exist" ) ;
37+ console . log ( "Header does not exist" ) ;
3838 }
3939 } ;
4040 return handler ;
@@ -91,15 +91,15 @@ describe('HTTP APIs', function() {
9191
9292 it ( 'should have set Link as resource in OPTIONS' , function ( done ) {
9393 server . options ( '/sampleContainer/example1.ttl' )
94- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = ' t y p e ' / )
94+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = " t y p e " / )
9595 . end ( done ) ;
9696 } ) ;
9797
9898 it ( 'should have set Link as Container/BasicContainer in OPTIONS' , function ( done ) {
9999 server . options ( '/sampleContainer/' )
100100 . set ( 'Origin' , 'http://example.com' )
101- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = ' t y p e ' / )
102- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = ' t y p e ' / )
101+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = " t y p e " / )
102+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = " t y p e " / )
103103 . end ( done ) ;
104104 } ) ;
105105 } ) ;
@@ -121,14 +121,14 @@ describe('HTTP APIs', function() {
121121
122122 it ( 'should have set Link as resource' , function ( done ) {
123123 server . get ( '/sampleContainer/example1.ttl' )
124- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = ' t y p e ' / )
124+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = " t y p e " / )
125125 . expect ( 200 , done ) ;
126126 } ) ;
127127
128128 it ( 'should have set Link as Container/BasicContainer' , function ( done ) {
129129 server . head ( '/sampleContainer/' )
130- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = ' t y p e ' / )
131- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = ' t y p e ' / )
130+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = " t y p e " / )
131+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = " t y p e " / )
132132 . expect ( 200 , done ) ;
133133 } ) ;
134134 it ( 'Should return 404 for non-existent resource' , function ( done ) {
@@ -142,7 +142,7 @@ describe('HTTP APIs', function() {
142142 } ) ;
143143 it ( 'Should return resource link for files' , function ( done ) {
144144 server . get ( '/hello.html' )
145- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = ' t y p e ' / )
145+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = " t y p e " / )
146146 . expect ( 200 , done ) ;
147147 } ) ;
148148 it ( 'Should have glob support' , function ( done ) {
@@ -169,14 +169,14 @@ describe('HTTP APIs', function() {
169169
170170 it ( 'should have set Link as Resource' , function ( done ) {
171171 server . head ( '/sampleContainer/example1.ttl' )
172- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = ' t y p e ' / )
172+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # R e s o u r c e > ; r e l = " t y p e " / )
173173 . expect ( 200 , done ) ;
174174 } ) ;
175175
176176 it ( 'should have set Link as Container/BasicContainer' , function ( done ) {
177177 server . get ( '/sampleContainer/' )
178- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = ' t y p e ' / )
179- . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = ' t y p e ' / )
178+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # B a s i c C o n t a i n e r > ; r e l = " t y p e " / )
179+ . expect ( 'Link' , / < h t t p : \/ \/ w w w .w 3 .o r g \/ n s \/ l d p # C o n t a i n e r > ; r e l = " t y p e " / )
180180 . expect ( 200 , done ) ;
181181 } ) ;
182182
0 commit comments