Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl committed Mar 21, 2024
1 parent fc7536f commit b0a85cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/mail.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ describe('mail', () => {

describe('payload', () => {
it('supports a type', () => {
input.type = 'text/html'
expect(payload(input).content[0].type).toBe('text/html')
input.type = 'text/plain'
expect(payload(input).content[0].type).toBe('text/plain')
})
input.type = 'text/html';
expect(payload(input).content[0].type).toBe('text/html');
input.type = 'text/plain';
expect(payload(input).content[0].type).toBe('text/plain');
});
it('supports multiple recipients', () => {
expect(
payload({ to: '[email protected],[email protected]' }).personalizations[0].to,
Expand Down
2 changes: 1 addition & 1 deletion src/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const input = {
body: '<h1>an html body</h1>',
subject: 'hello',
to: '[email protected]',
type: 'text/html'
type: 'text/html',
};

export const inputUrlEncoded = `to=${input.to}&subject=${input.subject}&body=${input.body}&attachments[][type]=text/plain&attachments[][content]=aGVsbG8sIHdvcmxkIQ==&attachments[][filename]=hello.txt&type=text/html`;

0 comments on commit b0a85cb

Please sign in to comment.