Add R API container to dev dependencies script, and consume R API from app #140
Annotations
6 errors
tests/unit/server/api/rApi.spec.ts > fetchRApi > should make a request to the correct URL when given an endpoint:
tests/unit/server/api/rApi.spec.ts#L19
AssertionError: expected null to deeply equal { test: 'expectedData' }
- Expected:
Object {
"test": "expectedData",
}
+ Received:
null
❯ tests/unit/server/api/rApi.spec.ts:19:27
|
tests/unit/server/api/rApi.spec.ts > fetchRApi > should allow setting $fetch options using options parameter:
tests/unit/server/api/rApi.spec.ts#L39
AssertionError: expected null to deeply equal { hasPosted: 'success' }
- Expected:
Object {
"hasPosted": "success",
}
+ Received:
null
❯ tests/unit/server/api/rApi.spec.ts:39:27
|
tests/unit/server/api/rApi.spec.ts > fetchRApi > when the R API response is unsuccessful > passes on the status code and message:
tests/unit/server/api/rApi.spec.ts#L60
AssertionError: expected 404 to be 418 // Object.is equality
- Expected
+ Received
- 418
+ 404
❯ tests/unit/server/api/rApi.spec.ts:60:35
|
tests/unit/server/handlers/versions.spec.ts > get version data > when the R API response is successful > should return the expected version data:
tests/unit/server/handlers/versions.spec.ts#L25
AssertionError: expected null to deeply equal { daedalusApi: '0.1.999', …(2) }
- Expected:
Object {
"daedalusApi": "0.1.999",
"daedalusModel": "0.1.0",
"daedalusWebApp": "0.0.1",
}
+ Received:
null
❯ tests/unit/server/handlers/versions.spec.ts:25:29
|
tests/unit/server/handlers/versions.spec.ts > get version data > when the R API response is unsuccessful > passes on the status code and message:
tests/unit/server/handlers/versions.spec.ts#L51
AssertionError: expected 404 to be 418 // Object.is equality
- Expected
+ Received
- 418
+ 404
❯ tests/unit/server/handlers/versions.spec.ts:51:35
|
test
Process completed with exit code 1.
|