Projects
openEuler:24.03:SP1:Everything
nodejs-merge-descriptors
_service:tar_scm:nodejs-merge-descriptors-node1...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:nodejs-merge-descriptors-node10.patch of Package nodejs-merge-descriptors
From 4512270990987bb387ac64cd9bf323d1c5f7f361 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson <doug@somethingdoug.com> Date: Sun, 1 Jul 2018 23:50:02 -0400 Subject: [PATCH] tests: fix throw asserts --- test/merge.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/merge.js b/test/merge.js index 80cbdc8..3a1d677 100644 --- a/test/merge.js +++ b/test/merge.js @@ -16,21 +16,21 @@ describe('merge(dest, src)', function () { describe('arguments', function () { describe('dest', function () { it('should be required', function () { - assert.throws(merge.bind(null, undefined), 'argument dest is required') + assert.throws(merge.bind(null, undefined), /argument dest is required/) }) it('should reject null', function () { - assert.throws(merge.bind(null, null), 'argument dest is required') + assert.throws(merge.bind(null, null), /argument dest is required/) }) }) describe('src', function () { it('should be required', function () { - assert.throws(merge.bind(null, {}, undefined), 'argument src is required') + assert.throws(merge.bind(null, {}, undefined), /argument src is required/) }) it('should reject null', function () { - assert.throws(merge.bind(null, {}, null), 'argument dest is required') + assert.throws(merge.bind(null, {}, null), /argument src is required/) }) }) })
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