remove the backup check notification and route

it seems we decided that instead of a notification, we display a warning in
the backups view itself (see #719).
This commit is contained in:
Girish Ramakrishnan
2021-06-23 22:06:20 -07:00
parent 3eb5a26c46
commit 89607d2c64
5 changed files with 1 additions and 67 deletions
+1 -32
View File
@@ -5,7 +5,7 @@
'use strict';
var appdb = require('../../appdb.js'),
const appdb = require('../../appdb.js'),
async = require('async'),
constants = require('../../constants.js'),
database = require('../../database.js'),
@@ -108,35 +108,4 @@ describe('Backups API', function () {
});
});
});
describe('check', function () {
it('fails due to mising token', function (done) {
superagent.get(SERVER_URL + '/api/v1/backups/check')
.end(function (error, result) {
expect(result.statusCode).to.equal(401);
done();
});
});
it('fails due to wrong token', function (done) {
superagent.get(SERVER_URL + '/api/v1/backups/check')
.query({ access_token: token.toUpperCase() })
.end(function (error, result) {
expect(result.statusCode).to.equal(401);
done();
});
});
it('succeeds', function (done) {
superagent.get(SERVER_URL + '/api/v1/backups/check')
.query({ access_token: token })
.end(function (error, result) {
expect(result.statusCode).to.equal(200);
expect(result.body.ok).to.equal(false);
expect(result.body.message).to.not.be.empty();
done();
});
});
});
});