Mail #25
Annotations
2 errors and 1 warning
src/mail.test.js > mail > makes a request to the sendgrid api:
src/mail.test.js#L19
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://api.sendgrid.com/v3/mail/send",
Object {
- "body": "{\"to\":\"[email protected]\",\"subject\":\"hello\"}",
+ "body": "{\"content\":[{\"type\":\"text/plain\",\"value\":\" \"}],\"from\":{\"email\":\"[email protected]\"},\"personalizations\":[{\"subject\":\"hello\",\"to\":[{\"email\":\"[email protected]\"}]}]}",
"headers": Object {
- "Authorization": Any<String>,
+ "Authorization": "***",
+ "Content-Type": "application/json",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/mail.test.js:19:26
|
test (20.x)
Process completed with exit code 1.
|
test (20.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|