forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Updated express-esm, generic-pool, grpc, & grpc-esm tests to n…
…ode:test
- Loading branch information
1 parent
9e98b18
commit 2cb3662
Showing
34 changed files
with
3,539 additions
and
3,545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2024 New Relic Corporation. All rights reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
'use strict' | ||
|
||
const get = require('../../../lib/util/get') | ||
|
||
/** | ||
* Asserts that the `found` object does not contain a property as defined | ||
* by `doNotWant`. | ||
* | ||
* @param {object} params Input parameters | ||
* @param {object} found The object to test for absence. | ||
* @param {string} doNotWant Dot separated path to a field that should not | ||
* have a value. | ||
* @param {string} [msg] Assertion message to include. | ||
* @param {object} [deps] Injected dependencies. | ||
* @param {object} [deps.assert] Assertion library to use. | ||
* | ||
* @throws {Error} When the `found` object contains a value at the specified | ||
* `doNotWant` path. | ||
*/ | ||
module.exports = function notHas( | ||
{ found, doNotWant, msg }, | ||
{ assert = require('node:assert') } = {} | ||
) { | ||
const result = get(found, doNotWant) | ||
assert.equal(result, undefined, msg) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.