tests: cleanup common variables

This commit is contained in:
Girish Ramakrishnan
2021-08-13 10:41:10 -07:00
parent aa981da43b
commit a8760f6c2c
20 changed files with 393 additions and 404 deletions

View File

@@ -11,8 +11,10 @@ const common = require('./common.js'),
system = require('../system.js');
describe('System', function () {
before(common.setup);
after(common.cleanup);
const { setup, cleanup } = common;
before(setup);
after(cleanup);
it('can get disks', function (done) {
system.getDisks(function (error, disks) {