Skip to content

Commit

Permalink
Fix Code Style
Browse files Browse the repository at this point in the history
  • Loading branch information
widoz committed Jan 20, 2024
1 parent 521ed6e commit f1504dd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion sources/client/src/hooks/use-entity-records.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import EntitiesSearch from '@types';
import { Set } from '../vo/set';

import { useEntityRecords as useCoreEntityRecords } from '@wordpress/core-data';

import { Set } from '../vo/set';

enum ResolveStatus {
ERROR = 'ERROR',
SUCCESS = 'SUCCESS',
Expand Down
2 changes: 1 addition & 1 deletion sources/client/src/hooks/use-query-viewable-post-types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import EntitiesSearch from '@types';
import { Set } from '../vo/set';

import { Set } from '../vo/set';
import { useEntityRecords } from './use-entity-records';

/**
Expand Down
2 changes: 1 addition & 1 deletion sources/client/src/hooks/use-query-viewable-taxonomies.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import EntitiesSearch from '@types';
import { Set } from '../vo/set';

import { Set } from '../vo/set';
import { useEntityRecords } from './use-entity-records';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import EntitiesSearch from '@types';
import { Set } from '../vo/set';

import { Set } from '../vo/set';
import { makeControlOption } from './make-control-option';

export function convertEntitiesToControlOptions<
Expand Down
1 change: 1 addition & 0 deletions sources/client/src/utils/unique-control-options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import EntitiesSearch from '@types';

import { Set } from '../vo/set';

// TODO Is this necessary due the new Set implementation?
Expand Down
3 changes: 2 additions & 1 deletion tests/client/unit/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import EntitiesSearch from '@types';
import { Set } from '../../../sources/client/src/vo/set';

import { faker } from '@faker-js/faker';

import { Set } from '../../../sources/client/src/vo/set';

export function buildOptions(): Set<EntitiesSearch.ControlOption<string>> {
let options = new Set<EntitiesSearch.ControlOption<string>>();

Expand Down
2 changes: 1 addition & 1 deletion tests/client/unit/utils/unique-control-options.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import EntitiesSearch from '@types';
import { Set } from '../../../../sources/client/src/vo/set';

import { describe, expect, it } from '@jest/globals';

import { uniqueControlOptions } from '../../../../sources/client/src/utils/unique-control-options';
import { Set } from '../../../../sources/client/src/vo/set';

describe('Unique Control Options', () => {
it('Do not allow same control options within the same set', () => {
Expand Down

0 comments on commit f1504dd

Please sign in to comment.