Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
chai-rx-assert
Advanced tools
Plugin for the chai assert library for comparing observables in tests
Plugin for the chai assert library for comparing observables in tests
(Thin wrapper around rx-assert library)
npm install chai-rx-assert
var chai = require('chai');
var chaiRx = require('chai-rx-assert');
chai.use(chaiRx);
it('should return messages with delay', () => {
var scheduler = new TestScheduler();
var xs = scheduler.createHotObservable(onNext(250, 2), onCompleted(550));
var results = scheduler.startScheduler(() => {
return xs.delay(100, scheduler);
});
expect(results.messages).to.rxEqual([onNext(350, 2), onCompleted(650)]) // assert ok
// or without wrapping in list
expect(results.messages).to.rxEqual(onNext(350, 2), onCompleted(650)) // assert ok
});
see full expample inside test/test.js
FAQs
Plugin for the chai assert library for comparing observables in tests
The npm package chai-rx-assert receives a total of 5 weekly downloads. As such, chai-rx-assert popularity was classified as not popular.
We found that chai-rx-assert 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.