Skip to content

Commit 9bf2f53

Browse files
committed
some cleanup of imports and spreads
1 parent c21474b commit 9bf2f53

File tree

114 files changed

+213
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+213
-225
lines changed

x-pack/plugins/lists/common/schemas/common/schemas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { pipe } from 'fp-ts/lib/pipeable';
88
import { left } from 'fp-ts/lib/Either';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111

1212
import {
1313
EsDataTypeGeoPoint,

x-pack/plugins/lists/common/schemas/common/schemas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import * as t from 'io-ts';
1010

1111
import { DefaultNamespace } from '../types/default_namespace';
12-
import { DefaultStringArray, NonEmptyString } from '../../siem_common_deps';
12+
import { DefaultStringArray, NonEmptyString } from '../../shared_imports';
1313

1414
export const name = t.string;
1515
export type Name = t.TypeOf<typeof name>;

x-pack/plugins/lists/common/schemas/elastic_response/search_es_list_item_schema.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { pipe } from 'fp-ts/lib/pipeable';
88
import { left } from 'fp-ts/lib/Either';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111

1212
import { SearchEsListItemSchema, searchEsListItemSchema } from './search_es_list_item_schema';
1313
import { getSearchEsListItemMock } from './search_es_list_item_schema.mock';
@@ -22,7 +22,7 @@ describe('search_es_list_item_schema', () => {
2222
expect(message.schema).toEqual(payload);
2323
});
2424

25-
test('it should not validate with a madeup value', () => {
25+
test('it should FAIL validation when a madeup value', () => {
2626
const payload: SearchEsListItemSchema & { madeupValue: string } = {
2727
...getSearchEsListItemMock(),
2828
madeupValue: 'madeupvalue',

x-pack/plugins/lists/common/schemas/elastic_response/search_es_list_schema.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { pipe } from 'fp-ts/lib/pipeable';
88
import { left } from 'fp-ts/lib/Either';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111

1212
import { SearchEsListSchema, searchEsListSchema } from './search_es_list_schema';
1313
import { getSearchEsListMock } from './search_es_list_schema.mock';
@@ -22,7 +22,7 @@ describe('search_es_list_schema', () => {
2222
expect(message.schema).toEqual(payload);
2323
});
2424

25-
test('it should not validate with a madeup value', () => {
25+
test('it should FAIL validation when a madeup value', () => {
2626
const payload: SearchEsListSchema & { madeupValue: string } = {
2727
...getSearchEsListMock(),
2828
madeupValue: 'madeupvalue',

x-pack/plugins/lists/common/schemas/request/create_endpoint_list_item_schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { left } from 'fp-ts/lib/Either';
88
import { pipe } from 'fp-ts/lib/pipeable';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111
import { getCreateCommentsArrayMock } from '../types/create_comment.mock';
1212
import { getCommentsMock } from '../types/comment.mock';
1313
import { CommentsArray } from '../types';

x-pack/plugins/lists/common/schemas/request/create_endpoint_list_item_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { RequiredKeepUndefined } from '../../types';
2323
import { CreateCommentsArray, DefaultCreateCommentsArray, nonEmptyEntriesArray } from '../types';
2424
import { EntriesArray } from '../types/entries';
25-
import { DefaultUuid } from '../../siem_common_deps';
25+
import { DefaultUuid } from '../../shared_imports';
2626

2727
export const createEndpointListItemSchema = t.intersection([
2828
t.exact(

x-pack/plugins/lists/common/schemas/request/create_exception_list_item_schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { left } from 'fp-ts/lib/Either';
88
import { pipe } from 'fp-ts/lib/pipeable';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111
import { getCreateCommentsArrayMock } from '../types/create_comment.mock';
1212
import { getCommentsMock } from '../types/comment.mock';
1313
import { CommentsArray } from '../types';

x-pack/plugins/lists/common/schemas/request/create_exception_list_item_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
nonEmptyEntriesArray,
3030
} from '../types';
3131
import { EntriesArray } from '../types/entries';
32-
import { DefaultUuid } from '../../siem_common_deps';
32+
import { DefaultUuid } from '../../shared_imports';
3333

3434
export const createExceptionListItemSchema = t.intersection([
3535
t.exact(

x-pack/plugins/lists/common/schemas/request/create_exception_list_schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { left } from 'fp-ts/lib/Either';
88
import { pipe } from 'fp-ts/lib/pipeable';
99

10-
import { exactCheck, foldLeftRight, getPaths } from '../../siem_common_deps';
10+
import { exactCheck, foldLeftRight, getPaths } from '../../shared_imports';
1111

1212
import {
1313
CreateExceptionListSchema,

x-pack/plugins/lists/common/schemas/request/create_exception_list_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
DefaultUuid,
2626
DefaultVersionNumber,
2727
DefaultVersionNumberDecoded,
28-
} from '../../siem_common_deps';
28+
} from '../../shared_imports';
2929
import { NamespaceType } from '../types';
3030

3131
export const createExceptionListSchema = t.intersection([

0 commit comments

Comments
 (0)