Rename getByIdentifierAndStatePaged to listByIdentifierAndStatePaged

This commit is contained in:
Girish Ramakrishnan
2026-02-15 12:15:55 +01:00
parent eae86d15ef
commit fc2e39f41b
6 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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');