We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee298ba commit aaafdf0Copy full SHA for aaafdf0
modules/angular2/test/testing/testing_public_spec.ts
@@ -6,6 +6,7 @@ import {
6
ddescribe,
7
xdescribe,
8
expect,
9
+ fakeAsync,
10
tick,
11
beforeEach,
12
inject,
@@ -169,6 +170,14 @@ export function main() {
169
170
(value) => { expect(value).toEqual('async value'); });
171
}));
172
173
+ it('should allow the use of fakeAsync',
174
+ inject([FancyService], fakeAsync((service) => {
175
+ var value;
176
+ service.getAsyncValue().then(function(val) { value = val; });
177
+ tick();
178
+ expect(value).toEqual('async value');
179
+ })));
180
+
181
describe('using beforeEach', () => {
182
beforeEach(inject([FancyService],
183
(service) => { service.value = 'value modified in beforeEach'; }));
0 commit comments