modules/hyprland/backend: handle empty json responses

Fixes https://github.com/Alexays/Waybar/issues/3388
This commit is contained in:
Austin Horstman
2024-06-28 13:11:50 -05:00
parent f6482c36dc
commit c08660d837
3 changed files with 21 additions and 3 deletions

View File

@ -14,3 +14,9 @@ class IPCTestFixture : public hyprland::IPC {
private:
};
class IPCMock : public IPCTestFixture {
public:
// Mock getSocket1Reply to return an empty string
static std::string getSocket1Reply(const std::string& rq) { return ""; }
};