
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Turn a jasmine Suite into one suitable for testing React components.
WARNING!!! This requires jasmine.promiseSuite to be available from jasmine_rsvp.
Example:
define(function(require) {
var Checkbox = require('jsx!components/checkbox');
describe('Components.Checkbox', function() {
this.reactSuite({ type: Checkbox });
});
});
The following features will become available to your suite:
All the React test helpers are injected into the global context throughout
your tests, so you can conveniently use things like find() and click().
Example:
it('should show a link', function() {
expect(find('a:contains("My Link Text")').length).toBe(1);
});
See JasmineReact.DOMHelpers for more info on what's available.
In your global suite context, "subject" will contain a reference to the mounted instance of the component you're testing, created and mounted during each test in your suite.
To test if your component is sending actions correctly, a custom matcher is exposed to your suite, called #toSendAction.
See the corresponding docs for more info on the matcher.
Example:
it('should send an action', function() {
expect(function() {
click('.my-button');
}).toSendAction('users:destroyAccount');
});
MIT
FAQs
JavaScript implementation of the Psync protocol.
We found that psync 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.