Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -92,10 +92,10 @@ describe('Attachments', () => {
|
|||
|
||||
it('throws if passed a non-string', () => {
|
||||
assert.throws(() => {
|
||||
Attachments.copyIntoAttachmentsDirectory((1234 as unknown) as string);
|
||||
Attachments.copyIntoAttachmentsDirectory(1234 as unknown as string);
|
||||
}, TypeError);
|
||||
assert.throws(() => {
|
||||
Attachments.copyIntoAttachmentsDirectory((null as unknown) as string);
|
||||
Attachments.copyIntoAttachmentsDirectory(null as unknown as string);
|
||||
}, TypeError);
|
||||
});
|
||||
|
||||
|
@ -103,7 +103,7 @@ describe('Attachments', () => {
|
|||
const copier = Attachments.copyIntoAttachmentsDirectory(
|
||||
await getFakeAttachmentsDirectory()
|
||||
);
|
||||
await assert.isRejected(copier((123 as unknown) as string));
|
||||
await assert.isRejected(copier(123 as unknown as string));
|
||||
});
|
||||
|
||||
it('returns a function that rejects if the source path is not in the user config directory', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue