MCPcopy Create free account
hub / github.com/ngrx/platform / Fixture

Class Fixture

modules/effects/spec/effect_creator.spec.ts:123–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 describe('getCreateEffectMetadata', () => {
122 it('should get the effects metadata for a class instance', () => {
123 class Fixture {
124 a = createEffect(() => of({ type: 'a' }));
125 b = createEffect(() => of({ type: 'b' }), { dispatch: true });
126 c = createEffect(() => of({ type: 'c' }), { dispatch: false });
127 d = createEffect(() => of({ type: 'd' }), {
128 useEffectsErrorHandler: true,
129 functional: false,
130 });
131 e = createEffect(() => of({ type: 'd' }), {
132 useEffectsErrorHandler: false,
133 functional: true,
134 });
135 f = createEffect(() => of({ type: 'e' }), {
136 dispatch: false,
137 functional: true,
138 useEffectsErrorHandler: false,
139 });
140 g = createEffect(() => of({ type: 'e' }), {
141 dispatch: true,
142 useEffectsErrorHandler: false,
143 });
144 }
145
146 const mock = new Fixture();
147

Callers

nothing calls this directly

Calls 2

createEffectFunction · 0.90
fakeCreateEffectFunction · 0.70

Tested by

no test coverage detected