Skip to content

Commit 7edf304

Browse files
committed
test: remove test of exact fields in JSON
1 parent 81c1edd commit 7edf304

File tree

2 files changed

+0
-95
lines changed

2 files changed

+0
-95
lines changed

tests/e2e-integration/integration/metadata-block-info/MetadataBlockInfoCitationExample.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

tests/e2e-integration/integration/metadata-block-info/MetadataBlockInfoJSDataverseRepository.spec.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11
import chai from 'chai'
22
import chaiAsPromised from 'chai-as-promised'
33
import { MetadataBlockInfoJSDataverseRepository } from '../../../../src/metadata-block-info/infrastructure/repositories/MetadataBlockInfoJSDataverseRepository'
4-
import { MetadataBlockInfoCitationExample } from './MetadataBlockInfoCitationExample'
54
import { TestsUtils } from '../../shared/TestsUtils'
65

76
chai.use(chaiAsPromised)
87
const expect = chai.expect
98

10-
const metadataBlockInfoExpected = MetadataBlockInfoCitationExample
119
const metadataBlockInfoRepository = new MetadataBlockInfoJSDataverseRepository()
1210
describe('Metadata Block Info JSDataverse Repository', () => {
1311
before(() => TestsUtils.setup())
1412
beforeEach(() => TestsUtils.login())
1513

16-
it('gets the metadataBlockInfo by name', async () => {
17-
await metadataBlockInfoRepository.getByName('citation').then((metadataBlockInfo) => {
18-
if (!metadataBlockInfo) {
19-
throw new Error('Metadata Block Info not found')
20-
}
21-
expect(metadataBlockInfo).to.deep.equal(metadataBlockInfoExpected)
22-
})
23-
})
2414
it('returns JSON in the correct format', async () => {
2515
await metadataBlockInfoRepository.getByName('citation').then((metadataBlockInfo) => {
2616
if (!metadataBlockInfo) {

0 commit comments

Comments
 (0)