More tests for the UpdateChecker class. It should be done for now.
This commit is contained in:
23
tests/data/errorChannels.json
Normal file
23
tests/data/errorChannels.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
"url": "http://example.org/stuff"
|
||||
},
|
||||
{
|
||||
"id": "stable",
|
||||
"name": "",
|
||||
"description": "It's stable at least",
|
||||
"url": "ftp://username@host/path/to/stuff"
|
||||
},
|
||||
{
|
||||
"id": "42",
|
||||
"name": "The Channel",
|
||||
"description": "This is the channel that is going to answer all of your questions",
|
||||
"url": ""
|
||||
}
|
||||
]
|
||||
}
|
22
tests/data/garbageChannels.json
Normal file
22
tests/data/garbageChannels.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"format_version": 0,
|
||||
"channels": [
|
||||
{
|
||||
"id": "develop",
|
||||
"name": "Develop",
|
||||
"description": "The channel called \"develop\"",
|
||||
aa "url": "http://example.org/stuff"
|
||||
},
|
||||
a "id": "stable",
|
||||
"name": "Stable",
|
||||
"description": "It's stable at least",
|
||||
"url": "ftp://username@host/path/to/stuff"
|
||||
},
|
||||
{
|
||||
"id": "42"f
|
||||
"name": "The Channel",
|
||||
"description": "This is the channel that is going to answer all of your questions",
|
||||
"url": "https://dent.me/tea"
|
||||
}
|
||||
]
|
||||
}
|
9
tests/data/index.json
Normal file
9
tests/data/index.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"ApiVersion": 0,
|
||||
"Versions": [
|
||||
{ "Id": 0, "Name": "1.0.0" },
|
||||
{ "Id": 1, "Name": "1.0.1" },
|
||||
{ "Id": 2, "Name": "1.0.2" },
|
||||
{ "Id": 3, "Name": "1.0.3" }
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user