chore: cleanup eslint suppressions (#38417)
* chore: cleanup eslint suppressions * address feedback * revert script/lib/azput.js * revert spec/fixtures/apps/remote-control/main.js * address feedback * revert typings/internal-ambient.d.ts
This commit is contained in:
parent
1c075e5ea0
commit
82af000a37
34 changed files with 76 additions and 115 deletions
|
@ -1111,29 +1111,25 @@ describe('asar package', function () {
|
|||
describe('fs.exists', function () {
|
||||
itremote('handles an existing file', async function () {
|
||||
const p = path.join(asarDir, 'a.asar', 'file1');
|
||||
// eslint-disable-next-line
|
||||
const exists = await new Promise(resolve => fs.exists(p, resolve))
|
||||
const exists = await new Promise(resolve => fs.exists(p, resolve));
|
||||
expect(exists).to.be.true();
|
||||
});
|
||||
|
||||
itremote('handles a non-existent file', async function () {
|
||||
const p = path.join(asarDir, 'a.asar', 'not-exist');
|
||||
// eslint-disable-next-line
|
||||
const exists = await new Promise(resolve => fs.exists(p, resolve))
|
||||
const exists = await new Promise(resolve => fs.exists(p, resolve));
|
||||
expect(exists).to.be.false();
|
||||
});
|
||||
|
||||
itremote('promisified version handles an existing file', async () => {
|
||||
const p = path.join(asarDir, 'a.asar', 'file1');
|
||||
// eslint-disable-next-line
|
||||
const exists = await require('util').promisify(fs.exists)(p)
|
||||
const exists = await require('util').promisify(fs.exists)(p);
|
||||
expect(exists).to.be.true();
|
||||
});
|
||||
|
||||
itremote('promisified version handles a non-existent file', async function () {
|
||||
const p = path.join(asarDir, 'a.asar', 'not-exist');
|
||||
// eslint-disable-next-line
|
||||
const exists = await require('util').promisify(fs.exists)(p)
|
||||
const exists = await require('util').promisify(fs.exists)(p);
|
||||
expect(exists).to.be.false();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue