diff --git a/jasmine/jasmine-tests.ts b/jasmine/jasmine-tests.ts
index ef0572303..8e3365eaf 100644
--- a/jasmine/jasmine-tests.ts
+++ b/jasmine/jasmine-tests.ts
@@ -1,6 +1,6 @@
///
-// tests based on http://jasmine.github.io/2.0/introduction.html
+// tests based on http://jasmine.github.io/2.2/introduction.html
describe("A suite", function () {
it("contains spec with an expectation", function () {
@@ -248,7 +248,8 @@ describe("Pending specs", function () {
it("can be declared by calling 'pending' in the spec body", function () {
expect(true).toBe(false);
- pending();
+ pending(); // without reason
+ pending('this is why it is pending');
});
});
diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts
index 3727f8839..64936f442 100644
--- a/jasmine/jasmine.d.ts
+++ b/jasmine/jasmine.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for Jasmine 2.1
+// Type definitions for Jasmine 2.2
// Project: http://jasmine.github.io/
// Definitions by: Boris Yankov , Theodore Brown , David Pärsson
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -18,7 +18,7 @@ declare function xit(expectation: string, assertion?: () => void, timeout?: numb
declare function xit(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void;
/** If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending. */
-declare function pending(): void;
+declare function pending(reason?: string): void;
declare function beforeEach(action: () => void, timeout?: number): void;
declare function beforeEach(action: (done: () => void) => void, timeout?: number): void;