New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

psync

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

psync

JavaScript implementation of the Psync protocol.

latest
Source
npmnpm
Version
1.1.7
Version published
Maintainers
1
Created
Source

jasmine_react

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 });
    });
});

Features

The following features will become available to your suite:

React Test Helpers

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.

Automatic component (un)mounting

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.

Action testing

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');
});

License

MIT

FAQs

Package last updated on 04 Oct 2014

Did you know?

Socket

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.

Install

Related posts