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

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);