We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cd0565 commit 01789f5Copy full SHA for 01789f5
2 files changed
projects/ng-dev/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@sama/ng-dev",
3
- "version": "20.0.0",
+ "version": "20.0.1",
4
"author": "Samasource",
5
"license": "MIT",
6
"homepage": "https://github.com/Samasource/s-libs/tree/master/projects/ng-dev",
projects/ng-dev/src/lib/angular-context/angular-context.ts
@@ -260,7 +260,9 @@ export class AngularContext {
260
#runWithMockedTime(test: VoidFunction): void {
261
// https://github.com/angular/angular/issues/31677#issuecomment-573139551
262
const { now } = performance;
263
- spyOn(performance, 'now').and.callFake(() => Date.now());
+ spyOn(performance, 'now').and.callFake(
264
+ () => Date.now() - this.startTime.getTime(),
265
+ );
266
267
jasmine.clock().install();
268
fakeAsync(() => {
0 commit comments