25 lines
685 B
TypeScript
25 lines
685 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { defaultFilter, defaultSort } from '@app/features/tasks/data-access/models/task-state.model';
|
|
|
|
describe('task-state.model', () => {
|
|
describe('defaultFilter', () => {
|
|
it('should have state as all', () => {
|
|
expect(defaultFilter.state).toBe('all');
|
|
});
|
|
|
|
it('should have empty search string', () => {
|
|
expect(defaultFilter.search).toBe('');
|
|
});
|
|
});
|
|
|
|
describe('defaultSort', () => {
|
|
it('should have field as dueDate', () => {
|
|
expect(defaultSort.field).toBe('dueDate');
|
|
});
|
|
|
|
it('should have direction as asc', () => {
|
|
expect(defaultSort.direction).toBe('asc');
|
|
});
|
|
});
|
|
});
|