Node.js based forum software built for the modern web
fix: spec, remove old tests
Barış Soner Uşaklı4afdf8bc275e
diff --git a/public/openapi/read/admin/manage/users.yaml b/public/openapi/read/admin/manage/users.yamlindex c3278c007b..713ccb9c7b 100644--- a/public/openapi/read/admin/manage/users.yaml+++ b/public/openapi/read/admin/manage/users.yaml@@ -15,6 +15,8 @@ get:type: arrayitems:$ref: ../../../components/schemas/UserObject.yaml#/UserObjectACP+ userCount:+ type: numberpage:type: numberpageCount:diff --git a/test/controllers-admin.js b/test/controllers-admin.jsindex 61a6217ed8..fe88abd456 100644--- a/test/controllers-admin.js+++ b/test/controllers-admin.js@@ -255,29 +255,6 @@ describe('Admin Controllers', function () {});});- it('should return 403 if no referer', function (done) {- request(nconf.get('url') + '/api/admin/users/csv', { jar: jar }, function (err, res, body) {- assert.ifError(err);- assert.equal(res.statusCode, 403);- assert.equal(body, '[[error:invalid-origin]]');- done();- });- });-- it('should return 403 if referer is not /admin/users/csv', function (done) {- request(nconf.get('url') + '/api/admin/users/csv', {- jar: jar,- headers: {- referer: '/topic/1/test',- },- }, function (err, res, body) {- assert.ifError(err);- assert.equal(res.statusCode, 403);- assert.equal(body, '[[error:invalid-origin]]');- done();- });- });-it('should load /admin/users/csv', function (done) {request(nconf.get('url') + '/api/admin/users/csv', {jar: jar,