Example:
|
expect(fakeAnalytics.sentEvents, isEmpty); |
|
}, |
|
overrides: <Type, Generator>{Usage: () => testUsage}, |
|
); |
Notice we make an assertion against fakeAnalytics. If you view the full test code, you see this value is never injected into any object (or the context global via testUsingContext's overrides parameter).