Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yctercero committed Jul 21, 2020
1 parent d0a43de commit 6a73892
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ describe('helpers', () => {
});

describe('#validateParams', () => {
test('returns true if value is undefined', () => {
test('returns false if value is undefined', () => {
const isValid = validateParams(undefined, getField('@timestamp'));

expect(isValid).toBeTruthy();
expect(isValid).toBeFalsy();
});

test('returns true if value is empty string', () => {
test('returns false if value is empty string', () => {
const isValid = validateParams('', getField('@timestamp'));

expect(isValid).toBeTruthy();
expect(isValid).toBeFalsy();
});

test('returns true if type is "date" and value is valid', () => {
Expand Down

0 comments on commit 6a73892

Please sign in to comment.