Skip to content

Commit cd1a931

Browse files
author
deiu
committed
Added extra test for skin/mashlib
1 parent 8a84397 commit cd1a931

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/http.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ describe('HTTP APIs', function () {
219219
})
220220
.expect(200, done) // Can't check for 303 because of internal redirects
221221
})
222+
it('should NOT load skin (mashlib) if resource is not RDF', function (done) {
223+
server.get('/sampleContainer/solid.png')
224+
.set('Accept', 'text/html')
225+
.expect('content-type', /image\/png/)
226+
.expect(200, done)
227+
})
222228
it('should redirect to defaultApp if container was requested as text/html', function (done) {
223229
server.get('/sampleContainer/')
224230
.set('Accept', 'text/html')

0 commit comments

Comments
 (0)