From 03098e81f846fa1ece564306faa6522eac9c6877 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Mon, 5 Feb 2024 18:49:19 -0800 Subject: [PATCH] Fixed `throwUnlessAsync` Fixes #2026 --- lib/jasmine-core/boot0.js | 2 +- lib/jasmine-core/boot1.js | 2 +- lib/jasmine-core/jasmine-html.js | 2 +- lib/jasmine-core/jasmine.js | 4 ++-- src/core/requireInterface.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/jasmine-core/boot0.js b/lib/jasmine-core/boot0.js index aeb3497a..d9afe769 100644 --- a/lib/jasmine-core/boot0.js +++ b/lib/jasmine-core/boot0.js @@ -1,6 +1,6 @@ /* Copyright (c) 2008-2019 Pivotal Labs -Copyright (c) 2008-2023 The Jasmine developers +Copyright (c) 2008-2024 The Jasmine developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/lib/jasmine-core/boot1.js b/lib/jasmine-core/boot1.js index b4f28983..33d105b7 100644 --- a/lib/jasmine-core/boot1.js +++ b/lib/jasmine-core/boot1.js @@ -1,6 +1,6 @@ /* Copyright (c) 2008-2019 Pivotal Labs -Copyright (c) 2008-2023 The Jasmine developers +Copyright (c) 2008-2024 The Jasmine developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/lib/jasmine-core/jasmine-html.js b/lib/jasmine-core/jasmine-html.js index c03f6dd0..0be90bff 100644 --- a/lib/jasmine-core/jasmine-html.js +++ b/lib/jasmine-core/jasmine-html.js @@ -1,6 +1,6 @@ /* Copyright (c) 2008-2019 Pivotal Labs -Copyright (c) 2008-2023 The Jasmine developers +Copyright (c) 2008-2024 The Jasmine developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 497be06d..74e5d203 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -1,6 +1,6 @@ /* Copyright (c) 2008-2019 Pivotal Labs -Copyright (c) 2008-2023 The Jasmine developers +Copyright (c) 2008-2024 The Jasmine developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the @@ -8309,7 +8309,7 @@ getJasmineRequireObj().interface = function(jasmine, env) { * @return {matchers} */ throwUnlessAsync: function(actual) { - return env.throwUnless(actual); + return env.throwUnlessAsync(actual); }, /** diff --git a/src/core/requireInterface.js b/src/core/requireInterface.js index c3d5de1e..42e7bad1 100644 --- a/src/core/requireInterface.js +++ b/src/core/requireInterface.js @@ -246,7 +246,7 @@ getJasmineRequireObj().interface = function(jasmine, env) { * @return {matchers} */ throwUnlessAsync: function(actual) { - return env.throwUnless(actual); + return env.throwUnlessAsync(actual); }, /**