Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
smalluban committed Apr 11, 2024
1 parent 11f7625 commit 7f34b38
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 125 deletions.
12 changes: 4 additions & 8 deletions test/types/store/direct-methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { store } from "/types/index";
import SingletonStore, { ISingleton } from "./singleton-definition.store";
import EnumerableStore, { IEnumerable } from "./enumerable-definition.store";

const SingletonModelPromise: Promise<ISingleton> = store.resolve(SingletonStore);
const SingletonModelPromise: Promise<ISingleton> =
store.resolve(SingletonStore);
const SingletonModel = await SingletonModelPromise;

const EnumerableModelPromise: Promise<IEnumerable> = store.resolve(EnumerableStore);
const EnumerableModelPromise: Promise<IEnumerable> =
store.resolve(EnumerableStore);
const EnumerableModel = await EnumerableModelPromise;

store.get(SingletonStore);
Expand All @@ -14,7 +16,6 @@ store.get([SingletonStore]);
store.get(EnumerableStore);
store.get([EnumerableStore]);


// ############################################### Create Singleton ###############################################

store.set(SingletonStore, {
Expand All @@ -36,7 +37,6 @@ store.set(SingletonStore, {
relatedEnumerables: {},
});


// ############################################### Update Singleton ###############################################

store.set(SingletonModel, {
Expand All @@ -58,14 +58,12 @@ store.set(SingletonModel, {
relatedEnumerables: {},
});


// ############################################### Delete Singleton ###############################################

// an error is expected, but when determining overload, the display of errors for incorrect values ​​in Model Update breaks
store.set(SingletonModel, null);
store.set(EnumerableModel, null);


// ############################################### Create Enumerable ###############################################

store.set(EnumerableStore, {
Expand All @@ -87,7 +85,6 @@ store.set(EnumerableStore, {
relatedEnumerables: {},
});


// ############################################### Update Enumerable ###############################################

store.set(EnumerableModel, {
Expand All @@ -109,7 +106,6 @@ store.set(EnumerableModel, {
relatedEnumerables: {},
});


// ############################################### Delete Enumerable ###############################################
// an error is expected, but when determining overload, the display of errors for incorrect values ​​in Model Update breaks
store.set(EnumerableStore, null);
Expand Down
Loading

0 comments on commit 7f34b38

Please sign in to comment.