style: remove -> del

This commit is contained in:
Girish Ramakrishnan
2024-12-03 17:02:40 +01:00
parent 423dfb6ace
commit fdf8025a02
8 changed files with 21 additions and 21 deletions
+4 -4
View File
@@ -112,14 +112,14 @@ describe('Applinks', function () {
expect(result.toString('base64')).to.eql(APPLINK_1.icon);
});
it('cannot remove applink with wrong id', async function () {
const [error] = await safe(applinks.remove('doesnotexist'));
it('cannot del applink with wrong id', async function () {
const [error] = await safe(applinks.del('doesnotexist'));
expect(error).to.be.a(BoxError);
expect(error.reason).to.eql(BoxError.NOT_FOUND);
});
it('can remove applink', async function () {
await applinks.remove(APPLINK_0.id);
it('can del applink', async function () {
await applinks.del(APPLINK_0.id);
const result = await applinks.get(APPLINK_0.id);
expect(result).to.be(null);
+2 -2
View File
@@ -172,13 +172,13 @@ describe('Groups', function () {
describe('delete', function () {
it('cannot delete invalid group', async function () {
const [error] = await safe(groups.remove('random'));
const [error] = await safe(groups.del('random'));
expect(error.reason).to.be(BoxError.NOT_FOUND);
});
it('can delete valid group', async function () {
await groups.setMembers(group0Object, [ admin.id, user.id ], {}); // ensure group has some members
await groups.remove(group0Object.id);
await groups.del(group0Object.id);
});
});