mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
Add/improve e2e test cases
This commit is contained in:
@@ -23,7 +23,7 @@ Content-Type: application/json
|
||||
|
||||
client.test("Response body has expected structure", function() {
|
||||
client.assert(response.body.hasOwnProperty("access_token"), "Response body missing 'access_token'");
|
||||
client.assert(response.body.access_token.length > 0, "access_token is empty");
|
||||
client.assert(response.body.access_token === "mock-access-token", "access_token is not 'mock-access-token'");
|
||||
|
||||
client.assert(response.body.hasOwnProperty("expires_in"), "Response body missing 'expires_in'");
|
||||
client.assert(typeof response.body.expires_in === "number", "expires_in is not a number");
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"test-user": {
|
||||
"user_id": "test-user",
|
||||
"display_name": "Integration Test User",
|
||||
"email": "test@example.com",
|
||||
"access_token": "mock-access-token",
|
||||
"refresh_token": "mock-refresh-token",
|
||||
"expires_at": 2147483647
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user