style: remove -> del
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user