jasmine-marbles Questions
4
Solved
I want to test an effect that works as follows:
Effect starts if LoadEntriesSucces action was dispatched
It waits for 5 seconds
After 5 seconds passes http request is send
When response arrives, ...
Bawl asked 29/1, 2019 at 15:0
1
I'm trying to convert my unit tests from Jasmine to Jest. Some tests started to fail after converting them to Jest. Can someone explain why they fail with Jest.
I managed to isolate the problem to...
Nimocks asked 16/4, 2019 at 9:38
1
Angular 6, Rxjs, Jest, Jasmine-marbles.
very common scenario: a component that searches for server-side items.
In the component, there are some controls that can change search critera, and I'd like...
Festschrift asked 29/8, 2018 at 15:37
2
Solved
I've got an issue testing a failed action on my effects.
To give a bit of context here loadProducts effect is executed when the Load action is called. Inside the effect an HTTP request is perform...
Linettelineup asked 7/5, 2020 at 2:55
1
Solved
In my angular project, I have a service, which is used for state management to share some data between components as following:
@Injectable({ providedIn: "root"})
export class NameStateService {
...
Flowers asked 24/12, 2019 at 3:32
1
Solved
I want to test ngLogger function with jasmine marble but a got error
Expected $.length = 2 to equal 1.
Expected $.length = 2 to equal 1.
Expected $[0].frame = 0 to equal 10.
Expected $[0].noti...
Changchangaris asked 19/6, 2019 at 15:39
1
Solved
I have written a pipe that filters an input observable. In the pipe I specify a timeout with the timeout() operator to abort waiting if the expected value is not emitted by the source in time.
I wa...
Mellon asked 23/4, 2019 at 21:2
1
Let's say I have an effect
@Effect()
someEffect$ = this.actions$.pipe(ofType(X), switchMap(() =>
of(Y).pipe(delay(3000)))
How should marble test look like?
const action = new X();
const res...
Seventy asked 28/11, 2018 at 13:32
2
Solved
According to rxjs marbles documentation the current behaviour for the sync groupings is the following:
'(ab)-(cd)': on frame 0, emits a and b then on frame 50, emits c and d
From the docs:
Wh...
Mediacy asked 18/5, 2018 at 8:26
1
Solved
I've got a quick demo people can download here: https://stackblitz.com/edit/angular-vczzqp Just hit export in the top right, in your favourite terminal and run install and ng test with your favouri...
Mcmorris asked 15/2, 2018 at 20:11
1
According to https://github.com/ReactiveX/rxjs/blob/master/docs_app/content/guide/testing/marble-testing.md#marble-syntax
'--(abc)-|': on frame 20, emit a, b, and c, then on frame 80 complete
So h...
Detribalize asked 19/10, 2017 at 21:22
1
© 2022 - 2024 — McMap. All rights reserved.