Skip to content

Commit d00bdfc

Browse files
author
deiu
committed
Added missing CType test for root acl file
1 parent 3ce712e commit d00bdfc

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎test/acl.js‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ describe('ACL HTTP', function() {
125125
done();
126126
});
127127
});
128+
it("Should return text/turtle for the acl file", function(done) {
129+
var options = createOptions(testDirAclFile, 'user1');
130+
options.headers = {
131+
accept: 'text/turtle'
132+
};
133+
request.get(options, function(error, response, body) {
134+
assert.equal(error, null);
135+
assert.equal(response.statusCode, 200);
136+
assert.match(response.headers['content-type'], /text\/turtle/);
137+
done();
138+
});
139+
});
128140
it("Should create test file", function(done) {
129141
var options = createOptions(abcFile, 'user1');
130142
options.headers = {
@@ -980,7 +992,7 @@ describe('ACL HTTP', function() {
980992
// });
981993
// });
982994
});
983-
995+
984996
describe("Cleaup", function() {
985997
it("should remove all files and dirs created", function(done) {
986998
try {

0 commit comments

Comments
 (0)