@@ -11,7 +11,7 @@ import {
11
11
import { renameDevtoolsName } from '../rename-devtools-name' ;
12
12
13
13
describe ( 'withDevtools / renaming' , ( ) => {
14
- it ( 'should automatically index multiple instances' , waitForAsync ( ( ) => {
14
+ it ( 'should automatically index multiple instances' , ( ) => {
15
15
const { sendSpy } = setupExtensions ( ) ;
16
16
const Store = signalStore (
17
17
{ providedIn : 'root' } ,
@@ -36,9 +36,9 @@ describe('withDevtools / renaming', () => {
36
36
'flights-1' : { airline : 'Lufthansa' } ,
37
37
}
38
38
) ;
39
- } ) ) ;
39
+ } ) ;
40
40
41
- it ( 'not index, if multiple instances do not exist simultaneously' , waitForAsync ( async ( ) => {
41
+ it ( 'not index, if multiple instances do not exist simultaneously' , ( ) => {
42
42
const { sendSpy } = setupExtensions ( ) ;
43
43
const Store = signalStore (
44
44
withDevtools ( 'flights' ) ,
@@ -78,9 +78,9 @@ describe('withDevtools / renaming', () => {
78
78
} ,
79
79
] ,
80
80
] ) ;
81
- } ) ) ;
81
+ } ) ;
82
82
83
- it ( 'should throw if automatic indexing is disabled' , waitForAsync ( ( ) => {
83
+ it ( 'should throw if automatic indexing is disabled' , ( ) => {
84
84
setupExtensions ( ) ;
85
85
const Store = signalStore (
86
86
{ providedIn : 'root' } ,
@@ -100,7 +100,7 @@ describe('withDevtools / renaming', () => {
100
100
`An instance of the store flights already exists. \
101
101
Enable automatic indexing via withDevTools('flights', { indexNames: true }), or rename it upon instantiation.`
102
102
) ;
103
- } ) ) ;
103
+ } ) ;
104
104
105
105
it ( 'should throw if name already exists' , ( ) => {
106
106
const { sendSpy } = setupExtensions ( ) ;
@@ -111,7 +111,7 @@ Enable automatic indexing via withDevTools('flights', { indexNames: true }), or
111
111
} ) ;
112
112
113
113
describe ( 'renaming' , ( ) => {
114
- it ( 'should allow to rename the store before first sync' , waitForAsync ( async ( ) => {
114
+ it ( 'should allow to rename the store before first sync' , ( ) => {
115
115
const { sendSpy } = setupExtensions ( ) ;
116
116
117
117
const Store = signalStore (
@@ -128,9 +128,9 @@ Enable automatic indexing via withDevTools('flights', { indexNames: true }), or
128
128
{ type : 'Store Update' } ,
129
129
{ flights : { name : 'Product' , price : 10.5 } }
130
130
) ;
131
- } ) ) ;
131
+ } ) ;
132
132
133
- it ( 'should throw on rename after sync' , waitForAsync ( async ( ) => {
133
+ it ( 'should throw on rename after sync' , ( ) => {
134
134
setupExtensions ( ) ;
135
135
const Store = signalStore (
136
136
{ providedIn : 'root' } ,
@@ -144,9 +144,9 @@ Enable automatic indexing via withDevTools('flights', { indexNames: true }), or
144
144
expect ( ( ) => renameDevtoolsName ( store , 'flights' ) ) . toThrow (
145
145
'NgRx Toolkit/DevTools: cannot rename from flight to flights. flight has already been send to DevTools.'
146
146
) ;
147
- } ) ) ;
147
+ } ) ;
148
148
149
- it ( 'should throw on rename if name already exists' , waitForAsync ( async ( ) => {
149
+ it ( 'should throw on rename if name already exists' , ( ) => {
150
150
setupExtensions ( ) ;
151
151
signalStore (
152
152
{ providedIn : 'root' } ,
@@ -165,7 +165,7 @@ Enable automatic indexing via withDevTools('flights', { indexNames: true }), or
165
165
expect ( ( ) => renameDevtoolsName ( store , 'shop' ) ) . toThrow (
166
166
'NgRx Toolkit/DevTools: cannot rename from mall to shop. mall has already been send to DevTools.'
167
167
) ;
168
- } ) ) ;
168
+ } ) ;
169
169
170
170
it ( 'should throw if applied to a SignalStore without DevTools' , ( ) => {
171
171
setupExtensions ( ) ;
0 commit comments