Skip to content

Commit 1a9c0b7

Browse files
committed
test: nullCondition
1 parent 60ffa54 commit 1a9c0b7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { describe, expect, it } from '@jest/globals';
2+
import NullCondition from './nullCondition';
3+
4+
describe('Null Condition', () => {
5+
const nullCondition = new NullCondition();
6+
7+
it('getConditionFieldNames() returns an empty array', () => {
8+
expect(nullCondition.getConditionFieldNames()).toEqual([]);
9+
});
10+
11+
it('getConditions() returns an empty array', () => {
12+
expect(nullCondition.getConditions()).toEqual([]);
13+
});
14+
15+
it('validate() returns true', () => {
16+
expect(nullCondition.validate()).toEqual(true);
17+
});
18+
});

0 commit comments

Comments
 (0)