Created
July 17, 2024 08:22
-
-
Save PCreations/7b7aaf0152f803c5d5b323212d438ebe to your computer and use it in GitHub Desktop.
e80a4d7414b8.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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