mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(test): If json string not quoted is server error
This commit is contained in:
parent
967dab8700
commit
7c74491226
@ -160,7 +160,7 @@ void TestToxmeData::extractCode_data()
|
||||
QTest::newRow("String code") << QStringLiteral(R"({"c": "string here"})")
|
||||
<< ToxmeData::ExecCode::IncorrectResponse;
|
||||
QTest::newRow("Invalid code") << QStringLiteral(R"({"c": text})")
|
||||
<< ToxmeData::ExecCode::IncorrectResponse;
|
||||
<< ToxmeData::ExecCode::ServerError;
|
||||
QTest::newRow("Not json") << QStringLiteral("Not json string")
|
||||
<< ToxmeData::ExecCode::ServerError;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user