Rename getByIdentifierAndStatePaged to listByIdentifierAndStatePaged
This commit is contained in:
@@ -119,8 +119,8 @@ describe('backups', function () {
|
||||
expect(result).to.eql(appBackup);
|
||||
});
|
||||
|
||||
it('getByIdentifierAndStatePaged succeeds', async function () {
|
||||
const results = await backups.getByIdentifierAndStatePaged(appBackup.identifier, backups.BACKUP_STATE_CREATING, 1, 5);
|
||||
it('listByIdentifierAndStatePaged succeeds', async function () {
|
||||
const results = await backups.listByIdentifierAndStatePaged(appBackup.identifier, backups.BACKUP_STATE_CREATING, 1, 5);
|
||||
expect(results.length).to.be(1);
|
||||
delete results[0].creationTime;
|
||||
expect(results[0]).to.eql(appBackup);
|
||||
|
||||
@@ -50,7 +50,7 @@ describe('backuptask', function () {
|
||||
if (p.error) throw new Error(`backup failed: taskId: ${taskId} ${p.error.message}`);
|
||||
if (!p.result) throw new Error('backup has no result:' + p);
|
||||
|
||||
const result = await backups.getByIdentifierAndStatePaged(backups.BACKUP_IDENTIFIER_BOX, backups.BACKUP_STATE_NORMAL, 1, 1);
|
||||
const result = await backups.listByIdentifierAndStatePaged(backups.BACKUP_IDENTIFIER_BOX, backups.BACKUP_STATE_NORMAL, 1, 1);
|
||||
|
||||
if (result.length !== 1) throw new Error('result is not of length 1');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user