Skip to content

Commit a81e20f

Browse files
committed
tests(server): Update tests for less verbose datacite.yml logging
1 parent 2487038 commit a81e20f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/openneuro-server/src/datalad/__tests__/contributors.spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,6 @@ describe("contributors (core functionality)", () => {
135135
})
136136

137137
expect(result).toEqual([])
138-
expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
139-
`Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} is Dataset type but provided no contributors.`,
140-
)
141138
expect(mockSentryCaptureException).not.toHaveBeenCalled()
142139
})
143140

@@ -168,9 +165,6 @@ describe("contributors (core functionality)", () => {
168165
expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
169166
`Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} served with unexpected Content-Type: text/plain. Attempting YAML parse anyway.`,
170167
)
171-
expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
172-
`Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} is Dataset type but provided no contributors.`,
173-
)
174168
expect(mockSentryCaptureException).not.toHaveBeenCalled()
175169
expect(result).toEqual([])
176170
})

0 commit comments

Comments
 (0)