摘要:
Epics can be unit-tested just like any other function in your application - they have a very specific set of inputs (the action$ stream) and the outpu 阅读全文
摘要:
With redux-observable, we have the power of RxJS at our disposal - this means tasks that would otherwise be complicated and imperative, become simple 阅读全文
摘要:
Imaging you are building a Tabs component. If looks like: You want to know which tab is clicked (actived). But you don't want this actived tab state b 阅读全文
摘要:
In this lesson we create a new Express web server app for handling file uploads and persisting them to the filesystem. We will walk through using the 阅读全文
摘要:
The way to test router componet needs a little bit setup, first we need to create a "router-stubs.ts". This file is a helper file. The component we wa 阅读全文
摘要:
Both what "TestBed.get" & "injector" trying to do is get service for the test component. But there is some diffenece which determined when use which. 阅读全文
摘要:
When you testing Component rendering, you often needs to call: For example: You can also set auto change detection: Add to providers: Tests wit auto c 阅读全文
摘要:
When using Ngrx, we need to know how to test the component which has Router injected. Component: One thing we can test just for component wihtout temp 阅读全文
摘要:
More detail check LInk. Render Prop vs HOC: HOC version for withMouse: Problems: Indirection. We still have the same problem with indirection that we 阅读全文