Skip to content

Commit

Permalink
fix: update tests for getColor RGBA on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ILikeTeaALot authored and codebytere committed Sep 25, 2023
1 parent d9c370e commit 9b57c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/api-system-preferences-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ describe('systemPreferences module', () => {
}).to.throw('Unknown color: not-a-color');
});

it('returns a hex RGB color string', () => {
expect(systemPreferences.getColor('window')).to.match(/^#[0-9A-F]{6}$/i);
it('returns a hex RGBA color string', () => {
expect(systemPreferences.getColor('window')).to.match(/^#[0-9A-F]{8}$/i);
});
});

Expand Down

0 comments on commit 9b57c86

Please sign in to comment.