Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Simple, asynchronous testing, using the assertions of your choice.
Written in CoffeeScript; will start compiling to JS at some point soon.
Testify.test "a suite of tests", (context) ->
# When you need to test the results of an asynchronous function,
# give context.test() a function that takes an argument. You can
# then use that argument as a new context for nesting tests.
context.test "testing something asynchronous", (context) ->
async_call (error, result1) ->
# If you give context.test() a function that takes no arguments,
# the test is assumed to be synchronous, and considered to have
# passed if the function runs without throwing an error.
context.test "result makes me happy", ->
assert.ifError(error)
assert.equal(result1, "pie")
context.test "a nested asynchronous test", (context) ->
another_async_call result1, (error, result2) ->
context.test "result makes me deeply happy", ->
assert.ifError(error)
assert.deepEqual result2, ["bacon", "cheese", "pie"]
context.test "shortcut for passing an async test", (context) ->
process.nextTick ->
# you can call context.pass() instead of using a synchronous test
context.pass()
FAQs
simple asynchronous testing using assertions of your choice
The npm package testify receives a total of 197 weekly downloads. As such, testify popularity was classified as not popular.
We found that testify 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.