Projects
openEuler:24.03:SP1:Everything:64G
nodejs-expect-dot-js
_service:tar_scm:nodejs-expect-dot-js-0.2.0-Pas...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-expect-dot-js-0.2.0-Pass-.fail-unit-test.patch of Package nodejs-expect-dot-js
From a17b21199149014a26729e79331001f976c9ee81 Mon Sep 17 00:00:00 2001 From: Gavin Huang <gravof@gmail.com> Date: Tue, 25 Sep 2012 12:33:55 +0800 Subject: [PATCH 05/13] Pass .fail() unit test --- expect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expect.js b/expect.js index ab5a1ee..ac14ea8 100644 --- a/expect.js +++ b/expect.js @@ -466,8 +466,8 @@ * @api public */ Assertion.prototype.fail = function (msg) { - msg = msg || "explicit failure"; - this.assert(false, msg, msg); + var error = function() { return msg || "explicit failure"; } + this.assert(false, error, error); return this; }; -- 1.8.2.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2