Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
buster-more-assertions
Advanced tools
Additional assertions for buster.js.
At the moment, only matchers for arrays and array-like objects are provided.
===
)Similar to assert.contains
, the following assertions are provided:
assert.containsOnce(array, element)
passes if array
contains element
exactly once.
assert.containsInOrder(array, a, b, c, ...)
passes if array contains all
passed-in values in that order.
The following assertions check for matching elements. See the documentation
of assert.match
to understand how buster matches.
assert.containsMatch(array, matcher)
passes if any element in array
matches matcher
.
assert.containsMatchOnce(array, matcher)
passes if exactly one element in
array
matches matcher
.
assert.containsMatchesInOrder(array, matcherA, matcherB, ...)
passes if
elements matching the passed-in matchers are contained in the given order.
These assertions check sequence elements by equality. Read the documentation
of assert.equals
to understand how buster checks for equality.
assert.containsEqual(array, value)
passes if any element in array
equals
value
.
assert.containsEqualOnce(array, value)
passes if exactly one element in
array
equals value
.
assert.containsEqualsInOrder(array, valueA, valueB, ...)
passes if elements
equaling the passed-in values are contained in the given order.
This assertion checks whether a string (or string representation of an object) contains a substring.
Contributions welcome! Please make sure that your assertion functions are
properly tested. Don’t test assert.myAssert()
, but only the
assertion function.
FAQs
Additional assertions for buster.js
The npm package buster-more-assertions receives a total of 1 weekly downloads. As such, buster-more-assertions popularity was classified as not popular.
We found that buster-more-assertions demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.