From 3ac9d950a0c5af9ce95c85d2318c7f8b7ec5852c Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 31 Oct 2017 15:22:01 -0700 Subject: [PATCH] Made name optional in jasmine::createSpy See https://github.com/jasmine/jasmine/issues/1438 --- types/jasmine/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 900c235990..7d5fc71cdb 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -137,7 +137,7 @@ declare namespace jasmine { function arrayContaining(sample: any[]): ArrayContaining; function objectContaining(sample: Partial): ObjectContaining; - function createSpy(name: string, originalFn?: Function): Spy; + function createSpy(name?: string, originalFn?: Function): Spy; function createSpyObj(baseName: string, methodNames: any[] | {[methodName: string]: any}): any; function createSpyObj(baseName: string, methodNames: any[] | {[methodName: string]: any}): SpyObj;