Skip to content

Commit 9f978cf

Browse files
committed
fix: update test
1 parent 0ebea61 commit 9f978cf

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎test/integration/guestbooks/GuestbooksRepository.test.ts‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -395,26 +395,6 @@ describe('GuestbooksRepository', () => {
395395
...overrides
396396
})
397397

398-
test('should be able to update a single field', async () => {
399-
const uniqueSuffix = Date.now().toString()
400-
const guestbookId = await sut.createGuestbook(testCollectionId, {
401-
...createGuestbookDTO,
402-
name: `guestbook edit email required ${uniqueSuffix}`,
403-
emailRequired: true
404-
})
405-
const guestbookBeforeEdit = await sut.getGuestbook(guestbookId)
406-
expect(guestbookBeforeEdit.emailRequired).toBe(true)
407-
408-
const editedGuestbook = buildEditGuestbookDTO(guestbookBeforeEdit, {
409-
emailRequired: false
410-
})
411-
412-
await sut.editGuestbook(guestbookId, editedGuestbook)
413-
414-
const actual = await sut.getGuestbook(guestbookId)
415-
expect(actual.emailRequired).toBe(false)
416-
})
417-
418398
test('should update existing custom question when custom question id is provided', async () => {
419399
const uniqueSuffix = Date.now().toString()
420400
const guestbookId = await sut.createGuestbook(testCollectionId, {

0 commit comments

Comments
 (0)