SDK regeneration with latest API changes #162
Annotations
7 errors
|
Test
Process completed with exit code 1.
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L231
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
"https://httpbin.org/post/file",
- ObjectContaining {
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
- },
+ {
+ "body": undefined,
+ "credentials": undefined,
+ "duplex": undefined,
+ "headers": Headers {},
"method": "GET",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kHandlers): Map {},
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
+ },
},
]
Number of calls: 1
❯ unit/fetcher/Fetcher.test.ts:231:30
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L188
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
"https://httpbin.org/post/file",
- ObjectContaining {
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
- },
+ {
+ "body": undefined,
+ "credentials": undefined,
+ "duplex": undefined,
+ "headers": Headers {},
"method": "GET",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kHandlers): Map {},
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
+ },
},
]
Number of calls: 1
❯ unit/fetcher/Fetcher.test.ts:188:30
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L143
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
"https://httpbin.org/post/file",
- ObjectContaining {
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
- },
+ {
+ "body": undefined,
+ "credentials": undefined,
+ "duplex": undefined,
+ "headers": Headers {},
"method": "GET",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kHandlers): Map {},
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
+ },
},
]
Number of calls: 1
❯ unit/fetcher/Fetcher.test.ts:143:30
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L98
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
"https://httpbin.org/post/file",
- ObjectContaining {
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
- },
+ {
+ "body": undefined,
+ "credentials": undefined,
+ "duplex": undefined,
+ "headers": Headers {},
"method": "GET",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kHandlers): Map {},
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
+ },
},
]
Number of calls: 1
❯ unit/fetcher/Fetcher.test.ts:98:30
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L63
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
[
"https://httpbin.org/post/file",
- ObjectContaining {
- "body": Any<ReadStream>,
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
+ {
+ "body": ReadStream {
+ "_events": {
+ "close": undefined,
+ "data": undefined,
+ "end": undefined,
+ "error": undefined,
+ "readable": undefined,
+ Symbol(kConstruct): [Function bound onceWrapper],
+ },
+ "_eventsCount": 1,
+ "_maxListeners": undefined,
+ "_readableState": ReadableState {
+ "awaitDrainWriters": null,
+ "buffer": [],
+ "bufferIndex": 0,
+ "highWaterMark": 65536,
+ "length": 0,
+ "pipes": [],
+ Symbol(kState): 1052684,
+ },
+ "bytesRead": 0,
+ "end": Infinity,
+ "fd": null,
+ "flags": "r",
+ "mode": 438,
+ "path": "/home/runner/work/phenoml-ts-sdk/phenoml-ts-sdk/tests/unit/fetcher/test-file.txt",
+ "pos": undefined,
+ "start": undefined,
+ Symbol(kFs): {
+ "Dir": [Function Dir],
+ "Dirent": [Function Dirent],
+ "F_OK": 0,
+ "FileReadStream": [Function ReadStream],
+ "FileWriteStream": [Function WriteStream],
+ "R_OK": 4,
+ "ReadStream": [Function ReadStream],
+ "Stats": [Function Stats],
+ "W_OK": 2,
+ "WriteStream": [Function WriteStream],
+ "X_OK": 1,
+ "_toUnixTimestamp": [Function toUnixTimestamp],
+ "access": [Function access],
+ "accessSync": [Function accessSync],
+ "appendFile": [Function appendFile],
+ "appendFileSync": [Function appendFileSync],
+ "chmod": [Function chmod],
+ "chmodSync": [Function chmodSync],
+ "chown": [Function chown],
+ "chownSync": [Function chownSync],
+ "close": [Function close],
+ "closeSync": [Function closeSync],
+ "constants": {
+ "COPYFILE_EXCL": 1,
+ "COPYFILE_FICLONE": 2,
+ "COPYFILE_FICLONE_FORCE": 4,
+ "EXTENSIONLESS_FORMAT_JAVASCRIPT": 0,
+ "EXTENSIONLESS_FORMAT_WASM": 1,
+ "F_OK": 0,
+ "O_APPEND": 1024,
+ "O_CREAT": 64,
+ "O_DIRECT": 16384,
+ "O_DIRECTORY": 65536,
+ "O_DSYNC": 4096,
+ "O_EXCL": 128,
+ "O_NOATIME": 262144,
+ "O_NOCTTY": 256,
+ "O_NOFOLLOW": 131072,
+ "O_NONBLOCK": 2048,
+ "O_RDONLY": 0,
+ "O_RDWR": 2,
+ "O_SYNC": 1052672,
+ "O_TRUNC": 512,
+ "O_WRONLY": 1,
+ "R_OK": 4,
+ "S_IFBLK": 24576,
+ "S_IFCHR": 8192,
+ "S_IFDIR": 16384,
+ "S_IFIFO": 4096,
+ "S_IFLNK": 40960,
+ "S_IFMT": 61440,
+ "S_IFREG": 32768,
+ "S_IFSOCK": 49152,
+ "S_IRGRP": 32,
+ "S_IROTH": 4,
+ "S_IRUSR": 256,
+ "S_IRWXG": 56,
+ "S_IRWXO": 7,
+ "S_IRWXU": 448,
+ "S_IWGRP": 16,
+ "S_IWOTH": 2,
+ "S_IWUSR": 128,
+ "S_IXGRP": 8,
+ "S_IXOTH": 1,
+ "S_IXUSR": 64,
+ "UV_DIRENT_BLOCK": 7,
+ "UV_DIRENT_CHAR": 6,
+ "UV_DIRENT_DIR": 2,
+ "UV_DIRENT_FIFO": 4,
+ "UV_DIRENT_FILE": 1,
+ "UV_DIRENT_LINK": 3,
+ "UV_DIRENT_SOCKET": 5,
+ "UV_DIRENT_UNKNOWN": 0,
+ "UV_FS_COPYFILE_EXCL": 1,
+ "UV_FS_COPYFILE_FICLONE": 2,
+ "UV_FS_COPYFILE_FICLONE_FORCE": 4,
+ "UV_FS_O_FILEMAP": 0,
+ "UV_FS_SYMLINK_DIR": 1,
+ "UV_FS_SYMLINK_JUNCTION": 2,
+ "W_OK": 2,
+ "X_OK": 1,
+ },
+ "copyFile": [Function copyFile],
+ "copyFileSync": [Function copyFileSync],
+ "cp": [Function cp],
+ "cpSync": [Function cpSync],
+ "createReadStream": [Function createReadStre
|
|
Test:
tests/unit/fetcher/Fetcher.test.ts#L32
AssertionError: expected "spy" to be called with arguments: [ 'https://httpbin.org/post', …(1) ]
Received:
1st spy call:
[
"https://httpbin.org/post",
- ObjectContaining {
+ {
"body": "{\"data\":\"test\"}",
- "headers": ObjectContaining {
- "X-Test": "x-test-header",
+ "credentials": undefined,
+ "duplex": undefined,
+ "headers": Headers {},
+ "method": "POST",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kHandlers): Map {},
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
},
- "method": "POST",
},
]
Number of calls: 1
❯ unit/fetcher/Fetcher.test.ts:32:30
|
Loading