test: add snapshot tests for MessageBuilder (#5598)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "util/Helpers.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "providers/twitch/TwitchCommon.hpp"
|
||||
|
||||
#include <QDirIterator>
|
||||
@@ -301,4 +302,16 @@ QString unescapeZeroWidthJoiner(QString escaped)
|
||||
return escaped;
|
||||
}
|
||||
|
||||
QLocale getSystemLocale()
|
||||
{
|
||||
#ifdef CHATTERINO_WITH_TESTS
|
||||
if (getApp()->isTest())
|
||||
{
|
||||
return {QLocale::English};
|
||||
}
|
||||
#endif
|
||||
|
||||
return QLocale::system();
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user