diff options
| author | Hank <hank@mullvad.net> | 2022-09-15 10:58:55 +0200 |
|---|---|---|
| committer | Hank <hank@mullvad.net> | 2022-09-20 11:33:54 +0200 |
| commit | e7cbfca6e4fb0b55fb4d4b2dca460623c850f218 (patch) | |
| tree | 988877722363374a02ed791591c42b026bbfdfe3 /gui | |
| parent | 3e095b638dbe53a225c06645627456f415d7b3d5 (diff) | |
| download | mullvadvpn-e7cbfca6e4fb0b55fb4d4b2dca460623c850f218.tar.xz mullvadvpn-e7cbfca6e4fb0b55fb4d4b2dca460623c850f218.zip | |
Remove _ prefix from function name
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/e2e/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/e2e/utils.ts b/gui/e2e/utils.ts index 1d9cf957b6..e3fd856caf 100644 --- a/gui/e2e/utils.ts +++ b/gui/e2e/utils.ts @@ -62,7 +62,7 @@ const sendMockIpcResponse = async <T>({ channel, response }: SendMockIpcResponse ); }; -const _getStyleProperty = async (locator: Locator, property: string) => { +const getStyleProperty = async (locator: Locator, property: string) => { return locator.evaluate( (el, { property }) => { return window.getComputedStyle(el).getPropertyValue(property); @@ -72,11 +72,11 @@ const _getStyleProperty = async (locator: Locator, property: string) => { }; const getColor = async (locator: Locator) => { - return _getStyleProperty(locator, 'color'); + return getStyleProperty(locator, 'color'); }; const getBackgroundColor = async (locator: Locator) => { - return _getStyleProperty(locator, 'background-color'); + return getStyleProperty(locator, 'background-color'); }; export { startApp, mockIpcHandle, sendMockIpcResponse, getColor, getBackgroundColor }; |
