test: refactor deprecate-helpers.ts to warning-helpers.ts (#46866)

Add a generic expectWarningMessages and start checking warning names
This commit is contained in:
David Sanders 2025-05-01 07:53:22 -07:00 committed by GitHub
parent d091cb91ba
commit ec4eafecae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 69 additions and 35 deletions

View file

@ -2,8 +2,8 @@ import { systemPreferences } from 'electron/main';
import { expect } from 'chai';
import { expectDeprecationMessages } from './lib/deprecate-helpers';
import { ifdescribe } from './lib/spec-helpers';
import { expectDeprecationMessages } from './lib/warning-helpers';
describe('systemPreferences module', () => {
ifdescribe(process.platform === 'win32')('systemPreferences.getAccentColor', () => {