From 9b57c86a343ea0f63d13c93df11bcddca3372b48 Mon Sep 17 00:00:00 2001 From: Madeline Date: Thu, 21 Sep 2023 19:20:16 +0100 Subject: [PATCH] fix: update tests for getColor RGBA on Windows --- spec/api-system-preferences-spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/api-system-preferences-spec.ts b/spec/api-system-preferences-spec.ts index d5a205aec073e..adedba89532f2 100644 --- a/spec/api-system-preferences-spec.ts +++ b/spec/api-system-preferences-spec.ts @@ -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); }); });