chore: fix promisify helper (#16544)
* chore: fix promise deprecation helper * fix deprecations * update deprecation tests
This commit is contained in:
parent
63bf370cc0
commit
5a35c3a279
12 changed files with 65 additions and 48 deletions
|
@ -859,7 +859,7 @@ describe('app module', () => {
|
|||
})
|
||||
|
||||
// TODO(codebytere): remove when promisification is complete
|
||||
it('fetches a non-empty icon (callback)', () => {
|
||||
it('fetches a non-empty icon (callback)', (done) => {
|
||||
app.getFileIcon(iconPath, (icon) => {
|
||||
expect(icon.isEmpty()).to.be.false()
|
||||
done()
|
||||
|
@ -875,7 +875,7 @@ describe('app module', () => {
|
|||
})
|
||||
|
||||
// TODO(codebytere): remove when promisification is complete
|
||||
it('fetches normal icon size by default (callback)', () => {
|
||||
it('fetches normal icon size by default (callback)', (done) => {
|
||||
app.getFileIcon(iconPath, (icon) => {
|
||||
const size = icon.getSize()
|
||||
|
||||
|
@ -903,7 +903,7 @@ describe('app module', () => {
|
|||
})
|
||||
|
||||
// TODO(codebytere): remove when promisification is complete
|
||||
it('fetches a normal icon (callback)', () => {
|
||||
it('fetches a normal icon (callback)', (done) => {
|
||||
app.getFileIcon(iconPath, { size: 'normal' }, (icon) => {
|
||||
const size = icon.getSize()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue