mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont try to clean up content display reports when running tests
This commit is contained in:
parent
1a7b6a2c59
commit
706c4dea18
2 changed files with 2 additions and 16 deletions
|
|
@ -15,6 +15,7 @@ import { SnakeNamingStrategy } from 'typeorm-naming-strategies'
|
|||
import { SubscriptionStatus } from '../src/generated/graphql'
|
||||
import { Integration } from '../src/entity/integration'
|
||||
import { FindOptionsWhere } from 'typeorm'
|
||||
import { ContentDisplayReport } from '../src/entity/reports/content_display_report'
|
||||
|
||||
const runMigrations = async () => {
|
||||
const migrationDirectory = __dirname + '/../../db/migrations'
|
||||
|
|
|
|||
|
|
@ -1,19 +1,7 @@
|
|||
import 'mocha'
|
||||
import chai, { expect } from 'chai'
|
||||
import 'chai/register-should'
|
||||
import {
|
||||
createTestPage,
|
||||
createTestUser,
|
||||
createUserWithoutProfile,
|
||||
deleteTestUser,
|
||||
getProfile,
|
||||
} from '../db'
|
||||
import { createGroup } from '../../src/services/groups'
|
||||
import {
|
||||
getUserFollowers,
|
||||
getUserFollowing,
|
||||
} from '../../src/services/followers'
|
||||
import { StatusType } from '../../src/datalayer/user/model'
|
||||
import { createTestUser, deleteTestUser } from '../db'
|
||||
import sinonChai from 'sinon-chai'
|
||||
import sinon from 'sinon'
|
||||
import * as util from '../../src/utils/sendEmail'
|
||||
|
|
@ -38,9 +26,6 @@ describe('saveContentDisplayReport', () => {
|
|||
})
|
||||
|
||||
after(async () => {
|
||||
await getRepository(ContentDisplayReport).delete({
|
||||
user: { id: user.id },
|
||||
})
|
||||
await deleteTestUser(user.id)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue