methods.test.ts 525 Bytes
Newer Older
Rosanny Sihombing's avatar
Rosanny Sihombing committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const methods = require('../functions/methods')

describe('DB methods', () => {
    test('all mailinglists', async () => {
        let lists = await methods.getAllMailinglists(0)
        expect(lists).not.toBeNull()
    })
    test('project overview', async () => {
        let overview = await methods.getProjectOverviewById(81)
        expect(overview).not.toBeNull()
    })
    test('project images', async () => {
        let images = await methods.getProjectImagesById(81)
        expect(images).not.toBeNull()
    })
})