Skip to content

Instantly share code, notes, and snippets.

@PCreations
Created July 17, 2024 08:22
Show Gist options
  • Save PCreations/af4b0a428f269594c293ae236ab9f959 to your computer and use it in GitHub Desktop.
Save PCreations/af4b0a428f269594c293ae236ab9f959 to your computer and use it in GitHub Desktop.
e82a8741f87c.diff
-22,6 +22,8 @@ describe('Feature: Adding a book', () => {
const addingBook = addBook.execute({ title: 'Clean Code' });
- await expect(addingBook).rejects.toThrow(new BookAlreadyExistsError('Foo'));
+ await expect(addingBook).rejects.toThrow(
+ new BookAlreadyExistsError('Clean Code'),
+ );
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment