style: verander namen van variabelen zodat ze beginnen met een kleine letter
This commit is contained in:
parent
4aa2dfc7d3
commit
da8e27acfd
12 changed files with 125 additions and 125 deletions
|
@ -4,30 +4,30 @@ import { setupTestApp } from '../setup-tests';
|
|||
import { getClassRepository } from '../../src/data/repositories';
|
||||
|
||||
describe('ClassRepository', () => {
|
||||
let ClassRepository: ClassRepository;
|
||||
let classRepository: ClassRepository;
|
||||
|
||||
beforeAll(async () => {
|
||||
await setupTestApp();
|
||||
ClassRepository = getClassRepository();
|
||||
classRepository = getClassRepository();
|
||||
});
|
||||
|
||||
it('should return nothing because id does not exist', async () => {
|
||||
const classVar = await ClassRepository.findById('test_id');
|
||||
const classVar = await classRepository.findById('test_id');
|
||||
|
||||
expect(classVar).toBeNull();
|
||||
});
|
||||
|
||||
it('should return requested class', async () => {
|
||||
const classVar = await ClassRepository.findById('id01');
|
||||
const classVar = await classRepository.findById('id01');
|
||||
|
||||
expect(classVar).toBeTruthy();
|
||||
expect(classVar?.displayName).toBe('class01');
|
||||
});
|
||||
|
||||
it('class should be gone after deletion', async () => {
|
||||
await ClassRepository.deleteById('id04');
|
||||
await classRepository.deleteById('id04');
|
||||
|
||||
const classVar = await ClassRepository.findById('id04');
|
||||
const classVar = await classRepository.findById('id04');
|
||||
|
||||
expect(classVar).toBeNull();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue