Skip to content

Instantly share code, notes, and snippets.

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